Skip to content

Commit 320f47a

Browse files
committed
Split-up HTTPClientTests into multiple subclasses
1 parent 03362bf commit 320f47a

File tree

3 files changed

+738
-724
lines changed

3 files changed

+738
-724
lines changed

Tests/AsyncHTTPClientTests/HTTP2ClientTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class HTTP2ClientTests: XCTestCase {
287287
)
288288

289289
XCTAssertThrowsError(try task.futureResult.timeout(after: .seconds(2)).wait()) {
290-
XCTAssertEqual($0 as? HTTPClientError, .cancelled)
290+
XCTAssertEqualTypeAndValue($0, HTTPClientError.cancelled)
291291
}
292292
}
293293

Tests/AsyncHTTPClientTests/HTTPClientTests+XCTest.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,12 @@ extension HTTPClientTests {
7777
("testWorksWhenServerClosesConnectionAfterReceivingRequest", testWorksWhenServerClosesConnectionAfterReceivingRequest),
7878
("testSubsequentRequestsWorkWithServerSendingConnectionClose", testSubsequentRequestsWorkWithServerSendingConnectionClose),
7979
("testSubsequentRequestsWorkWithServerAlternatingBetweenKeepAliveAndClose", testSubsequentRequestsWorkWithServerAlternatingBetweenKeepAliveAndClose),
80-
("testStressGetHttps", testStressGetHttps),
80+
8181
("testStressGetHttpsSSLError", testStressGetHttpsSSLError),
8282
("testSelfSignedCertificateIsRejectedWithCorrectError", testSelfSignedCertificateIsRejectedWithCorrectError),
8383
("testSelfSignedCertificateIsRejectedWithCorrectErrorIfRequestDeadlineIsExceeded", testSelfSignedCertificateIsRejectedWithCorrectErrorIfRequestDeadlineIsExceeded),
8484
("testFailingConnectionIsReleased", testFailingConnectionIsReleased),
85-
("testResponseDelayGet", testResponseDelayGet),
86-
("testIdleTimeoutNoReuse", testIdleTimeoutNoReuse),
85+
8786
("testStressGetClose", testStressGetClose),
8887
("testManyConcurrentRequestsWork", testManyConcurrentRequestsWork),
8988
("testRepeatedRequestsWorkWhenServerAlwaysCloses", testRepeatedRequestsWorkWhenServerAlwaysCloses),
@@ -104,7 +103,7 @@ extension HTTPClientTests {
104103
("testUseExistingConnectionOnDifferentEL", testUseExistingConnectionOnDifferentEL),
105104
("testWeRecoverFromServerThatClosesTheConnectionOnUs", testWeRecoverFromServerThatClosesTheConnectionOnUs),
106105
("testPoolClosesIdleConnections", testPoolClosesIdleConnections),
107-
("testRacePoolIdleConnectionsAndGet", testRacePoolIdleConnectionsAndGet),
106+
108107
("testAvoidLeakingTLSHandshakeCompletionPromise", testAvoidLeakingTLSHandshakeCompletionPromise),
109108
("testAsyncShutdown", testAsyncShutdown),
110109
("testAsyncShutdownDefaultQueue", testAsyncShutdownDefaultQueue),
@@ -126,7 +125,7 @@ extension HTTPClientTests {
126125
("testContentLengthTooLongFails", testContentLengthTooLongFails),
127126
("testContentLengthTooShortFails", testContentLengthTooShortFails),
128127
("testBodyUploadAfterEndFails", testBodyUploadAfterEndFails),
129-
("testNoBytesSentOverBodyLimit", testNoBytesSentOverBodyLimit),
128+
130129
("testDoubleError", testDoubleError),
131130
("testSSLHandshakeErrorPropagation", testSSLHandshakeErrorPropagation),
132131
("testSSLHandshakeErrorPropagationDelayedClose", testSSLHandshakeErrorPropagationDelayedClose),
@@ -145,7 +144,7 @@ extension HTTPClientTests {
145144
("testCloseWhileBackpressureIsExertedIsFine", testCloseWhileBackpressureIsExertedIsFine),
146145
("testErrorAfterCloseWhileBackpressureExerted", testErrorAfterCloseWhileBackpressureExerted),
147146
("testRequestSpecificTLS", testRequestSpecificTLS),
148-
("testConnectionPoolSizeConfigValueIsRespected", testConnectionPoolSizeConfigValueIsRespected),
147+
149148
("testRequestWithHeaderTransferEncodingIdentityDoesNotFail", testRequestWithHeaderTransferEncodingIdentityDoesNotFail),
150149
("testMassiveDownload", testMassiveDownload),
151150
("testShutdownWithFutures", testShutdownWithFutures),

0 commit comments

Comments
 (0)