@@ -26,12 +26,12 @@ class HTTP2ClientTests: XCTestCase {
2626 func makeDefaultHTTPClient( ) -> HTTPClient {
2727 var tlsConfig = TLSConfiguration . makeClientConfiguration ( )
2828 tlsConfig. certificateVerification = . none
29+ var config = HTTPClient . Configuration ( )
30+ config. tlsConfiguration = tlsConfig
31+ config. httpVersion = . automatic
2932 return HTTPClient (
3033 eventLoopGroupProvider: . createNew,
31- configuration: HTTPClient . Configuration (
32- tlsConfiguration: tlsConfig,
33- httpVersion: . automatic
34- ) ,
34+ configuration: config,
3535 backgroundActivityLogger: Logger ( label: " HTTPClient " , factory: StreamLogHandler . standardOutput ( label: ) )
3636 )
3737 }
@@ -124,12 +124,12 @@ class HTTP2ClientTests: XCTestCase {
124124 let elg = MultiThreadedEventLoopGroup ( numberOfThreads: numberOfWorkers)
125125 var tlsConfig = TLSConfiguration . makeClientConfiguration ( )
126126 tlsConfig. certificateVerification = . none
127+ var config = HTTPClient . Configuration ( )
128+ config. tlsConfiguration = tlsConfig
129+ config. httpVersion = . automatic
127130 let localClient = HTTPClient (
128131 eventLoopGroupProvider: . shared( elg) ,
129- configuration: HTTPClient . Configuration (
130- tlsConfiguration: tlsConfig,
131- httpVersion: . automatic
132- ) ,
132+ configuration: config,
133133 backgroundActivityLogger: Logger ( label: " HTTPClient " , factory: StreamLogHandler . standardOutput ( label: ) )
134134 )
135135 defer {
0 commit comments