We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2721ed commit 476cdc5Copy full SHA for 476cdc5
SQLiteTests/ConnectionPoolTests.swift
@@ -48,14 +48,13 @@ class ConnectionPoolTests : SQLiteTestCase {
48
49
print("started", threadNumber)
50
51
- while !quit {
+ while !quit || reads <= 0 {
52
self.pool.read { conn in
53
let _ = try! conn.prepare("SELECT name FROM test WHERE id = ?").scalar(threadNumber) as! String
54
reads += 1
55
}
56
57
58
- XCTAssertTrue(reads > 0, "Thread \(threadNumber) did not read.")
59
print("ended at", reads, "reads")
60
61
ex.fulfill()
0 commit comments