Skip to content

Commit daa604e

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

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Tests/Foundation/TestURLSession.swift

Lines changed: 0 additions & 8 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"))
@@ -43,7 +40,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
4340
if !d.error {
4441
XCTAssertEqual(d.capital, "deflate, gzip, br", "test_dataTaskWithURLRequest returned an unexpected result")
4542
}
46-
#endif
4743
}
4844

4945
func test_dataTaskWithURLCompletionHandler() async {
@@ -272,9 +268,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
272268
}
273269

274270
func test_brotliDataTask() async {
275-
#if !os(Windows)
276-
throw XCTSkip("This test is currently only enabled on Windows")
277-
#else
278271
let urlString = "http://127.0.0.1:\(TestURLSession.serverPort)/brotli-response"
279272
let url = URL(string: urlString)!
280273
let d = DataTask(with: expectation(description: "GET \(urlString): brotli response"))
@@ -283,7 +276,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
283276
if !d.error {
284277
XCTAssertEqual(d.capital, "Hello World!")
285278
}
286-
#endif
287279
}
288280

289281
func test_downloadTaskWithURL() async {

0 commit comments

Comments
 (0)