Skip to content

Commit 5bc521e

Browse files
committed
Only available on OS X 10.10 or newer
1 parent 1549062 commit 5bc521e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SQLiteTests/ConnectionTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ class ConnectionTests : SQLiteTestCase {
310310
let stmt = try! db.prepare("SELECT *, sleep(?) FROM users", 0.1)
311311
try! stmt.run()
312312

313-
_ = DispatchQueue.global(qos: .background).asyncAfter(deadline: DispatchTime.now() + Double(Int64(10 * NSEC_PER_MSEC)) / Double(NSEC_PER_SEC), execute: db.interrupt)
313+
let deadline = DispatchTime.now() + Double(Int64(10 * NSEC_PER_MSEC)) / Double(NSEC_PER_SEC)
314+
_ = DispatchQueue.global(priority: .background).asyncAfter(deadline: deadline, execute: db.interrupt)
314315
AssertThrows(try stmt.run())
315316
}
316317

0 commit comments

Comments
 (0)