We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79206d commit 29d194fCopy full SHA for 29d194f
Tests/AsyncHTTPClientTests/HTTP1ConnectionTests.swift
@@ -320,6 +320,7 @@ class HTTP1ConnectionTests: XCTestCase {
320
defer { XCTAssertNoThrow(try eventLoopGroup.syncShutdownGracefully()) }
321
322
let httpBin = HTTPBin(handlerFactory: { _ in AfterRequestCloseConnectionChannelHandler() })
323
+ defer { XCTAssertNoThrow(try httpBin.shutdown()) }
324
325
var maybeChannel: Channel?
326
@@ -362,7 +363,6 @@ class HTTP1ConnectionTests: XCTestCase {
362
363
364
XCTAssertNoThrow(try XCTUnwrap(maybeChannel).closeFuture.wait())
365
XCTAssertEqual(connectionDelegate.hitConnectionClosed, 1)
- XCTAssertEqual(httpBin.activeConnections, 0)
366
}
367
368
func testConnectionIsClosedAfterSwitchingProtocols() {
0 commit comments