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 1549062 commit 5bc521eCopy full SHA for 5bc521e
SQLiteTests/ConnectionTests.swift
@@ -310,7 +310,8 @@ class ConnectionTests : SQLiteTestCase {
310
let stmt = try! db.prepare("SELECT *, sleep(?) FROM users", 0.1)
311
try! stmt.run()
312
313
- _ = DispatchQueue.global(qos: .background).asyncAfter(deadline: DispatchTime.now() + Double(Int64(10 * NSEC_PER_MSEC)) / Double(NSEC_PER_SEC), execute: db.interrupt)
+ 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)
315
AssertThrows(try stmt.run())
316
}
317
0 commit comments