File tree 3 files changed +25
-7
lines changed
Tests/AsyncHTTPClientTests
3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -416,9 +416,9 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
416
416
XCTAssertNoThrow ( try serverChannel. close ( ) . wait ( ) )
417
417
}
418
418
let port = serverChannel. localAddress!. port!
419
- let firstClientChannel = try ClientBootstrap ( group: self . serverGroup)
419
+ let firstClientChannel = try await ClientBootstrap ( group: self . serverGroup)
420
420
. connect ( host: " 127.0.0.1 " , port: port)
421
- . wait ( )
421
+ . get ( )
422
422
defer {
423
423
XCTAssertNoThrow ( try firstClientChannel. close ( ) . wait ( ) )
424
424
}
@@ -464,7 +464,7 @@ final class AsyncAwaitEndToEndTests: XCTestCase {
464
464
. childChannelInitializer { channel in
465
465
channel. pipeline. addHandler ( NIOSSLServerHandler ( context: sslContext) )
466
466
}
467
- let serverChannel = try server. bind ( host: " localhost " , port: 0 ) . wait ( )
467
+ let serverChannel = try await server. bind ( host: " localhost " , port: 0 ) . get ( )
468
468
defer { XCTAssertNoThrow ( try serverChannel. close ( ) . wait ( ) ) }
469
469
let port = serverChannel. localAddress!. port!
470
470
Original file line number Diff line number Diff line change @@ -3,16 +3,16 @@ version: "3"
3
3
services :
4
4
5
5
runtime-setup :
6
- image : async-http-client:20 .04-main
6
+ image : async-http-client:22 .04-5.8
7
7
build :
8
8
args :
9
- base_image : " swiftlang/swift:nightly-main-focal "
9
+ base_image : " swiftlang/swift:nightly-5.8-jammy "
10
10
11
11
test :
12
- image : async-http-client:20 .04-main
12
+ image : async-http-client:22 .04-5.8
13
13
environment :
14
14
- IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
15
15
# - SANITIZER_ARG=--sanitize=thread
16
16
17
17
shell :
18
- image : async-http-client:20 .04-main
18
+ image : async-http-client:22 .04-5.8
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+
3
+ services :
4
+
5
+ runtime-setup :
6
+ image : async-http-client:22.04-main
7
+ build :
8
+ args :
9
+ base_image : " swiftlang/swift:nightly-main-jammy"
10
+
11
+ test :
12
+ image : async-http-client:22.04-main
13
+ environment :
14
+ - IMPORT_CHECK_ARG=--explicit-target-dependency-import-check error
15
+ # - SANITIZER_ARG=--sanitize=thread
16
+
17
+ shell :
18
+ image : async-http-client:22.04-main
You can’t perform that action at this time.
0 commit comments