@@ -32,9 +32,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
32
32
}
33
33
34
34
func test_dataTaskWithAcceptEncoding( ) async {
35
- #if !os(Windows)
36
- throw XCTSkip ( " This test is currently only enabled on Windows " )
37
- #else
38
35
let urlString = " http://127.0.0.1: \( TestURLSession . serverPort) /accept-encoding "
39
36
let url = URL ( string: urlString) !
40
37
let d = DataTask ( with: expectation ( description: " GET \( urlString) : with a delegate " ) )
@@ -43,7 +40,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
43
40
if !d. error {
44
41
XCTAssertEqual ( d. capital, " deflate, gzip, br " , " test_dataTaskWithURLRequest returned an unexpected result " )
45
42
}
46
- #endif
47
43
}
48
44
49
45
func test_dataTaskWithURLCompletionHandler( ) async {
@@ -272,9 +268,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
272
268
}
273
269
274
270
func test_brotliDataTask( ) async {
275
- #if !os(Windows)
276
- throw XCTSkip ( " This test is currently only enabled on Windows " )
277
- #else
278
271
let urlString = " http://127.0.0.1: \( TestURLSession . serverPort) /brotli-response "
279
272
let url = URL ( string: urlString) !
280
273
let d = DataTask ( with: expectation ( description: " GET \( urlString) : brotli response " ) )
@@ -283,7 +276,6 @@ final class TestURLSession: LoopbackServerTest, @unchecked Sendable {
283
276
if !d. error {
284
277
XCTAssertEqual ( d. capital, " Hello World! " )
285
278
}
286
- #endif
287
279
}
288
280
289
281
func test_downloadTaskWithURL( ) async {
0 commit comments