@@ -26,12 +26,12 @@ class HTTP2ClientTests: XCTestCase {
26
26
func makeDefaultHTTPClient( ) -> HTTPClient {
27
27
var tlsConfig = TLSConfiguration . makeClientConfiguration ( )
28
28
tlsConfig. certificateVerification = . none
29
+ var config = HTTPClient . Configuration ( )
30
+ config. tlsConfiguration = tlsConfig
31
+ config. httpVersion = . automatic
29
32
return HTTPClient (
30
33
eventLoopGroupProvider: . createNew,
31
- configuration: HTTPClient . Configuration (
32
- tlsConfiguration: tlsConfig,
33
- httpVersion: . automatic
34
- ) ,
34
+ configuration: config,
35
35
backgroundActivityLogger: Logger ( label: " HTTPClient " , factory: StreamLogHandler . standardOutput ( label: ) )
36
36
)
37
37
}
@@ -124,12 +124,12 @@ class HTTP2ClientTests: XCTestCase {
124
124
let elg = MultiThreadedEventLoopGroup ( numberOfThreads: numberOfWorkers)
125
125
var tlsConfig = TLSConfiguration . makeClientConfiguration ( )
126
126
tlsConfig. certificateVerification = . none
127
+ var config = HTTPClient . Configuration ( )
128
+ config. tlsConfiguration = tlsConfig
129
+ config. httpVersion = . automatic
127
130
let localClient = HTTPClient (
128
131
eventLoopGroupProvider: . shared( elg) ,
129
- configuration: HTTPClient . Configuration (
130
- tlsConfiguration: tlsConfig,
131
- httpVersion: . automatic
132
- ) ,
132
+ configuration: config,
133
133
backgroundActivityLogger: Logger ( label: " HTTPClient " , factory: StreamLogHandler . standardOutput ( label: ) )
134
134
)
135
135
defer {
0 commit comments