Skip to content

Commit e32db09

Browse files
committed
Shorten testConcurrentAccess2 time as it is making the travis tests take too long.
1 parent 6052c31 commit e32db09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SQLiteTests/ConnectionPoolTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ class ConnectionPoolTests : SQLiteTestCase {
6262

6363
}
6464

65-
for x in 10..<5000 {
65+
for x in 10..<1000 {
6666

6767
let name = "test" + String(x)
68-
let idx = Int(rand()) % 5
68+
let idx = Int(rand()) % threadCount
6969

7070
do {
7171
try conn.run("UPDATE test SET name=? WHERE id=?", name, idx)

0 commit comments

Comments
 (0)