mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Fix async test for SQLCipher VACUUM INTO
This commit is contained in:
1 parent
33d9ca0e97
commit
97e00ab44f
1 file changed
+6
-1
@@ -377,8 +377,13 @@ class DatabaseWriterTests : GRDBTestCase {
|
||||
#endif
|
||||
|
||||
#if compiler(>=5.5.2) && canImport(_Concurrency)
|
||||
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
|
||||
@available(macOS 10.16, iOS 14, tvOS 14, watchOS 7, *) // async + vacuum into
|
||||
func testAsyncAwait_vacuumInto() async throws {
|
||||
// Prevent SQLCipher failures
|
||||
guard sqlite3_libversion_number() >= 3027000 else {
|
||||
throw XCTSkip("VACUUM INTO is not available")
|
||||
}
|
||||
|
||||
func setup<T: DatabaseWriter>(_ dbWriter: T) throws -> T {
|
||||
try dbWriter.write { db in
|
||||
try db.execute(sql: "CREATE TABLE t (id INTEGER PRIMARY KEY)")
|
||||
|
||||
Reference in new issue
Block a user