Skip to content

Commit

Permalink
Increase timeout for test that inserts many events to SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Oct 10, 2023
1 parent 13bf0d5 commit ad68b8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/Storage/TestSQLiteEventStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ class TestSQLiteEventStore: XCTestCase {
]
for i in 0..<5 {
dispatchQueue.async {
for _ in 0..<500 {
for _ in 0..<250 {
eventStore.addEvent(payload)
}
expectations[i].fulfill()
}
}
wait(for: expectations, timeout: 3)
wait(for: expectations, timeout: 10)

XCTAssertEqual(eventStore.count(), 2500)
XCTAssertEqual(eventStore.count(), 1250)
XCTAssertEqual(eventStore.emittableEvents(withQueryLimit: 600).count, 250)
XCTAssertEqual(eventStore.emittableEvents(withQueryLimit: 150).count, 150)

Expand Down

0 comments on commit ad68b8e

Please sign in to comment.