Skip to content

Commit 978ec68

Browse files
committed
Make brotli test available on Linux
1 parent f0fbde1 commit 978ec68

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Tests/Foundation/TestURLSession.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
3232
}
3333

3434
func test_dataTaskWithAcceptEncoding() async {
35-
#if !os(Windows)
36-
throw XCTSkip("This test is currently only enabled on Windows")
37-
#else
3835
let urlString = "http://127.0.0.1:\(TestURLSession.serverPort)/accept-encoding"
3936
let url = URL(string: urlString)!
4037
let d = DataTask(with: expectation(description: "GET \(urlString): with a delegate"))
@@ -272,9 +269,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
272269
}
273270

274271
func test_brotliDataTask() async {
275-
#if !os(Windows)
276-
throw XCTSkip("This test is currently only enabled on Windows")
277-
#else
278272
let urlString = "http://127.0.0.1:\(TestURLSession.serverPort)/brotli-response"
279273
let url = URL(string: urlString)!
280274
let d = DataTask(with: expectation(description: "GET \(urlString): brotli response"))
@@ -283,7 +277,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
283277
if !d.error {
284278
XCTAssertEqual(d.capital, "Hello World!")
285279
}
286-
#endif
287280
}
288281

289282
func test_downloadTaskWithURL() async {

0 commit comments

Comments
 (0)