Skip to content

Commit

Permalink
review comments: corrected the timeout as well as the typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jayahariv committed Feb 19, 2021
1 parent 6291921 commit ca253bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Swift/Tests/ReplicatorTest.swift
Expand Up @@ -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() {
Expand Down Expand Up @@ -1081,7 +1081,7 @@ class ReplicatorTest_Main: ReplicatorTest {
}

repl.start()
wait(for: [x], timeout: 900)
wait(for: [x], timeout: timeout)
XCTAssertEqual(count, offlineCount)
}

Expand Down Expand Up @@ -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)
}
}

0 comments on commit ca253bb

Please sign in to comment.