Skip to content

Commit 4b7a9bb

Browse files
committed
CI: raise timeouts
1 parent 184d5aa commit 4b7a9bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/GRDBCombineTests/DatabaseReaderReadPublisherTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class DatabaseReaderReadPublisherTests : XCTestCase {
3636
try Player.fetchCount(db)
3737
})
3838
let recorder = publisher.record()
39-
let value = try wait(for: recorder.single, timeout: 1)
39+
let value = try wait(for: recorder.single, timeout: 5)
4040
XCTAssertEqual(value, 0)
4141
}
4242

@@ -135,7 +135,7 @@ class DatabaseReaderReadPublisherTests : XCTestCase {
135135
try Row.fetchAll(db, sql: "THIS IS NOT SQL")
136136
})
137137
let recorder = publisher.record()
138-
let recording = try wait(for: recorder.recording, timeout: 1)
138+
let recording = try wait(for: recorder.recording, timeout: 5)
139139
XCTAssertTrue(recording.output.isEmpty)
140140
assertFailure(recording.completion) { (error: DatabaseError) in
141141
XCTAssertEqual(error.resultCode, .SQLITE_ERROR)
@@ -177,7 +177,7 @@ class DatabaseReaderReadPublisherTests : XCTestCase {
177177
})
178178

179179
semaphore.signal()
180-
waitForExpectations(timeout: 1, handler: nil)
180+
waitForExpectations(timeout: 5, handler: nil)
181181
cancellable.cancel()
182182
}
183183

@@ -215,7 +215,7 @@ class DatabaseReaderReadPublisherTests : XCTestCase {
215215
dispatchPrecondition(condition: .onQueue(.main))
216216
})
217217

218-
waitForExpectations(timeout: 1, handler: nil)
218+
waitForExpectations(timeout: 5, handler: nil)
219219
cancellable.cancel()
220220
}
221221

@@ -254,7 +254,7 @@ class DatabaseReaderReadPublisherTests : XCTestCase {
254254
dispatchPrecondition(condition: .onQueue(queue))
255255
})
256256

257-
waitForExpectations(timeout: 1, handler: nil)
257+
waitForExpectations(timeout: 5, handler: nil)
258258
cancellable.cancel()
259259
}
260260

@@ -277,7 +277,7 @@ class DatabaseReaderReadPublisherTests : XCTestCase {
277277
try Player.createTable(db)
278278
})
279279
let recorder = publisher.record()
280-
let recording = try wait(for: recorder.recording, timeout: 1)
280+
let recording = try wait(for: recorder.recording, timeout: 5)
281281
XCTAssertTrue(recording.output.isEmpty)
282282
assertFailure(recording.completion) { (error: DatabaseError) in
283283
XCTAssertEqual(error.resultCode, .SQLITE_READONLY)

0 commit comments

Comments
 (0)