Skip to content

Commit 221d14f

Browse files
committed
add documentation
1 parent e636193 commit 221d14f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/AsyncHTTPClientTests/HTTP2ClientTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ class HTTP2ClientTests: XCTestCase {
208208
defer { XCTAssertNoThrow(try bin.shutdown()) }
209209
let clientGroup = MultiThreadedEventLoopGroup(numberOfThreads: 1)
210210
defer { XCTAssertNoThrow(try clientGroup.syncShutdownGracefully()) }
211+
// we need an active connection to guarantee that requests are executed immediately
212+
// without waiting for connection establishment
211213
let client = self.makeClientWithActiveHTTP2Connection(to: bin, eventLoopGroupProvider: .shared(clientGroup))
212214

213215
// start 20 requests which are guaranteed to never get any response

0 commit comments

Comments
 (0)