From ca253bb31e9f1df2037b5606bf4b9fa06e60bdf3 Mon Sep 17 00:00:00 2001 From: jayahariv <10448770+jayahariv@users.noreply.github.com> Date: Thu, 18 Feb 2021 16:14:57 -0800 Subject: [PATCH] review comments: corrected the timeout as well as the typo --- Swift/Tests/ReplicatorTest.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Swift/Tests/ReplicatorTest.swift b/Swift/Tests/ReplicatorTest.swift index 3ca120920..cafa63ebb 100644 --- a/Swift/Tests/ReplicatorTest.swift +++ b/Swift/Tests/ReplicatorTest.swift @@ -25,7 +25,7 @@ class ReplicatorTest: CBLTestCase { var repl: Replicator! var timeout: TimeInterval = 10 // At least 10 to cover single-shot replicator's retry logic - // connect to an uknown-db on same machine, for the connection refused transient error. + // connect to an unknown-db on same machine, for the connection refused transient error. let kConnRefusedTarget: URLEndpoint = URLEndpoint(url: URL(string: "ws://localhost:4984/unknown-db-wXBl5n3fed")!) override func setUp() { @@ -1081,7 +1081,7 @@ class ReplicatorTest_Main: ReplicatorTest { } repl.start() - wait(for: [x], timeout: 900) + wait(for: [x], timeout: timeout) XCTAssertEqual(count, offlineCount) } @@ -1164,7 +1164,7 @@ class ReplicatorTest_Main: ReplicatorTest { } repl.start() - wait(for: [x], timeout: 900) + wait(for: [x], timeout: timeout) XCTAssert(abs(diff - config.maxRetryWaitTime) < 1.0) } }