Skip to content

Commit 6c48e49

Browse files
committed
CI: raise timeouts
1 parent 26fedd2 commit 6c48e49

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Tests/GRDBCombineTests/DatabaseWriterWritePublisherTests.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
3737
try Player(id: 1, name: "Arthur", score: 1000).insert(db)
3838
})
3939
let recorder = publisher.record()
40-
try wait(for: recorder.single, timeout: 1)
40+
try wait(for: recorder.single, timeout: 5)
4141
try XCTAssertEqual(writer.read(Player.fetchCount), 1)
4242
}
4343

@@ -65,7 +65,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
6565
return try Player.fetchCount(db)
6666
})
6767
let recorder = publisher.record()
68-
let count = try wait(for: recorder.single, timeout: 1)
68+
let count = try wait(for: recorder.single, timeout: 5)
6969
XCTAssertEqual(count, 1)
7070
}
7171

@@ -87,7 +87,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
8787
try db.execute(sql: "THIS IS NOT SQL")
8888
})
8989
let recorder = publisher.record()
90-
let recording = try wait(for: recorder.recording, timeout: 1)
90+
let recording = try wait(for: recorder.recording, timeout: 5)
9191
XCTAssertTrue(recording.output.isEmpty)
9292
assertFailure(recording.completion) { (error: DatabaseError) in
9393
XCTAssertEqual(error.resultCode, .SQLITE_ERROR)
@@ -117,7 +117,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
117117
try db.execute(sql: "THIS IS NOT SQL")
118118
})
119119
let recorder = publisher.record()
120-
let recording = try wait(for: recorder.recording, timeout: 1)
120+
let recording = try wait(for: recorder.recording, timeout: 5)
121121
XCTAssertTrue(recording.output.isEmpty)
122122
assertFailure(recording.completion) { (error: DatabaseError) in
123123
XCTAssertEqual(error.resultCode, .SQLITE_ERROR)
@@ -160,7 +160,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
160160
})
161161

162162
semaphore.signal()
163-
waitForExpectations(timeout: 1, handler: nil)
163+
waitForExpectations(timeout: 5, handler: nil)
164164
cancellable.cancel()
165165
}
166166

@@ -199,7 +199,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
199199
expectation.fulfill()
200200
})
201201

202-
waitForExpectations(timeout: 1, handler: nil)
202+
waitForExpectations(timeout: 5, handler: nil)
203203
cancellable.cancel()
204204
}
205205

@@ -239,7 +239,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
239239
expectation.fulfill()
240240
})
241241

242-
waitForExpectations(timeout: 1, handler: nil)
242+
waitForExpectations(timeout: 5, handler: nil)
243243
cancellable.cancel()
244244
}
245245

@@ -269,7 +269,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
269269
updates: { db in try Player(id: 1, name: "Arthur", score: 1000).insert(db) },
270270
thenRead: { db, _ in try Player.fetchCount(db) })
271271
let recorder = publisher.record()
272-
let count = try wait(for: recorder.single, timeout: 1)
272+
let count = try wait(for: recorder.single, timeout: 5)
273273
XCTAssertEqual(count, 1)
274274
}
275275

@@ -292,7 +292,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
292292
updates: { _ in },
293293
thenRead: { db, _ in try Player.createTable(db) })
294294
let recorder = publisher.record()
295-
let recording = try wait(for: recorder.recording, timeout: 1)
295+
let recording = try wait(for: recorder.recording, timeout: 5)
296296
XCTAssertTrue(recording.output.isEmpty)
297297
assertFailure(recording.completion) { (error: DatabaseError) in
298298
XCTAssertEqual(error.resultCode, .SQLITE_READONLY)
@@ -317,7 +317,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
317317
updates: { db in try db.execute(sql: "THIS IS NOT SQL") },
318318
thenRead: { _, _ in XCTFail("Should not read") })
319319
let recorder = publisher.record()
320-
let recording = try wait(for: recorder.recording, timeout: 1)
320+
let recording = try wait(for: recorder.recording, timeout: 5)
321321
XCTAssertTrue(recording.output.isEmpty)
322322
assertFailure(recording.completion) { (error: DatabaseError) in
323323
XCTAssertEqual(error.resultCode, .SQLITE_ERROR)
@@ -349,7 +349,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
349349
},
350350
thenRead: { _, _ in XCTFail("Should not read") })
351351
let recorder = publisher.record()
352-
let recording = try wait(for: recorder.recording, timeout: 1)
352+
let recording = try wait(for: recorder.recording, timeout: 5)
353353
XCTAssertTrue(recording.output.isEmpty)
354354
assertFailure(recording.completion) { (error: DatabaseError) in
355355
XCTAssertEqual(error.resultCode, .SQLITE_ERROR)
@@ -379,7 +379,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
379379
updates: { _ in },
380380
thenRead: { db, _ in try Row.fetchAll(db, sql: "THIS IS NOT SQL") })
381381
let recorder = publisher.record()
382-
let recording = try wait(for: recorder.recording, timeout: 1)
382+
let recording = try wait(for: recorder.recording, timeout: 5)
383383
XCTAssertTrue(recording.output.isEmpty)
384384
assertFailure(recording.completion) { (error: DatabaseError) in
385385
XCTAssertEqual(error.resultCode, .SQLITE_ERROR)
@@ -421,7 +421,7 @@ class DatabaseWriterWritePublisherTests : XCTestCase {
421421
.prefix(1)
422422
let recorder = publisher.record()
423423
scoreSubject.send(0)
424-
let count = try wait(for: recorder.single, timeout: 1)
424+
let count = try wait(for: recorder.single, timeout: 5)
425425
XCTAssertEqual(count, 1)
426426
}
427427

0 commit comments

Comments
 (0)