Skip to content

Commit 33566e7

Browse files
committed
thread pool is actually not used in tests
1 parent ac0b9f7 commit 33566e7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/AsyncHTTPClientTests/RequestBagTests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -771,16 +771,13 @@ final class RequestBagTests: XCTestCase {
771771
}
772772
}
773773

774-
import NIOPosix
775-
776774
extension HTTPClient.Task {
777775
convenience init(
778776
eventLoop: EventLoop,
779777
logger: Logger
780778
) {
781-
lazy var threadPool = NIOThreadPool(numberOfThreads: 1)
782779
self.init(eventLoop: eventLoop, logger: logger) {
783-
threadPool
780+
preconditionFailure("thread pool not needed in tests")
784781
}
785782
}
786783
}

0 commit comments

Comments
 (0)