From ad68b8ef02a8360f968e89ba3c30b5c034ac5e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matu=CC=81s=CC=8C=20Tomlein?= Date: Tue, 10 Oct 2023 17:18:56 +0200 Subject: [PATCH] Increase timeout for test that inserts many events to SQLite --- Tests/Storage/TestSQLiteEventStore.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Storage/TestSQLiteEventStore.swift b/Tests/Storage/TestSQLiteEventStore.swift index 348c863d7..354aa6b1e 100644 --- a/Tests/Storage/TestSQLiteEventStore.swift +++ b/Tests/Storage/TestSQLiteEventStore.swift @@ -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)