Skip to content

Commit

Permalink
Speed up test
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Feb 11, 2025
1 parent bef30e4 commit 004d2de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/HummingbirdHTTP2Tests/HTTP2Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ final class HummingBirdHTTP2Tests: XCTestCase {
verifiedResult.withLockedValue { $0 = .failed }

do {
try await withHTTPClient(.init(tlsConfiguration: tlsConfiguration)) { httpClient in
try await withHTTPClient(
.init(
tlsConfiguration: tlsConfiguration,
timeout: .init(connect: .seconds(2), read: .seconds(2))
)
) {
httpClient in
let request2 = HTTPClientRequest(url: "https://localhost:\(port)/")
let response2 = try await httpClient.execute(request2, deadline: .now() + .seconds(30))
print(response2)
Expand Down

0 comments on commit 004d2de

Please sign in to comment.