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.
2 parents 7467794 + e1bb59f commit 75a0712Copy full SHA for 75a0712
Tests/IndexTests.swift
@@ -963,4 +963,20 @@ class IndexTests: XCTestCase {
963
})
964
waitForExpectationsWithTimeout(expectationTimeout, handler: nil)
965
}
966
+
967
+ func testTCPDrop() {
968
+ let expectation = expectationWithDescription(#function)
969
970
+ // The host `notcp-xx-1.algolianet.com` will drop TCP connections.
971
+ client.readHosts[0] = "notcp-xx-1.algolianet.com"
972
973
+ client.listIndexes({
974
+ (content, error) -> Void in
975
+ if error != nil {
976
+ XCTFail(error!.description)
977
+ }
978
+ expectation.fulfill()
979
+ })
980
+ waitForExpectationsWithTimeout(expectationTimeout, handler: nil)
981
982
0 commit comments