Give more time to SQLCipher4 Travis tests

This commit is contained in:
Gwendal Roué committed 2020-07-13 20:15:27 +02:00
1 parent 7f229468d2
commit b02b995b76
4 files changed
+12 -14

No files matched your search

@@ -52,8 +52,7 @@
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
testExecutionOrdering = "random">
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "564A1F1C226B876D001F64F1"
@@ -63,8 +62,7 @@
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
testExecutionOrdering = "random">
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "564A2095226B8E18001F64F1"
@@ -988,7 +988,7 @@ class DatabasePoolConcurrencyTests: GRDBTestCase {
try! test(targetQueue: .main)
expectation.fulfill()
}
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
}
func testQoS() throws {
@@ -424,7 +424,7 @@ extension GRDBTestCase {
{
#if SQLITE_HAS_CODEC || GRDBCUSTOMSQLITE
// debug SQLite builds can be *very* slow
let timeout: TimeInterval = 2
let timeout: TimeInterval = 3
#else
let timeout: TimeInterval = 1
#endif
+8 -8
View File
@@ -62,7 +62,7 @@ class ValueObservationTests: GRDBTestCase {
})
withExtendedLifetime(cancellable) {
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
XCTAssertTrue(errorCaught)
}
}
@@ -103,7 +103,7 @@ class ValueObservationTests: GRDBTestCase {
onError: { error in XCTFail("Unexpected error: \(error)") },
onChange: { _ in })
withExtendedLifetime(observer) {
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
XCTAssertEqual(region!.description, "t(id,name)") // view is NOT tracked
}
}
@@ -162,7 +162,7 @@ class ValueObservationTests: GRDBTestCase {
expectation.fulfill()
})
withExtendedLifetime(cancellable) {
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
XCTAssertEqual(observedCounts, [0, 0])
}
}
@@ -202,7 +202,7 @@ class ValueObservationTests: GRDBTestCase {
expectation.fulfill()
})
withExtendedLifetime(cancellable) {
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
XCTAssertEqual(observedCounts, [0, 0])
}
}
@@ -369,7 +369,7 @@ class ValueObservationTests: GRDBTestCase {
// Avoid "Variable 'cancellable' was written to, but never read" warning
_ = cancellable
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
XCTAssertEqual(changesCount, 2)
}
@@ -413,7 +413,7 @@ class ValueObservationTests: GRDBTestCase {
try db.execute(sql: "INSERT INTO t DEFAULT VALUES")
}
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
XCTAssertEqual(changesCount, 2)
}
}
@@ -453,7 +453,7 @@ class ValueObservationTests: GRDBTestCase {
try dbWriter.write { db in
try db.execute(sql: "INSERT INTO t DEFAULT VALUES")
}
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
}
try test(makeDatabaseQueue())
@@ -496,7 +496,7 @@ class ValueObservationTests: GRDBTestCase {
try dbWriter.write { db in
try db.execute(sql: "INSERT INTO t DEFAULT VALUES")
}
waitForExpectations(timeout: 1, handler: nil)
waitForExpectations(timeout: 2, handler: nil)
}
try test(makeDatabaseQueue())