diff --git a/Tests/GRDBTests/DatabaseQueueSchemaCacheTests.swift b/Tests/GRDBTests/DatabaseQueueSchemaCacheTests.swift index 0b5dd36d0..2ce7c1dd9 100644 --- a/Tests/GRDBTests/DatabaseQueueSchemaCacheTests.swift +++ b/Tests/GRDBTests/DatabaseQueueSchemaCacheTests.swift @@ -134,6 +134,12 @@ class DatabaseQueueSchemaCacheTests : GRDBTestCase { } func testMainShadowedByAttachedDatabase() throws { + #if SQLITE_HAS_CODEC + // Avoid error due to key not being provided: + // file is not a database - while executing `ATTACH DATABASE...` + throw XCTSkip("This test does not suppport encrypted databases") + #endif + let attached1 = try makeDatabaseQueue(filename: "attached1") try attached1.write { db in try db.execute(sql: """ diff --git a/Tests/GRDBTests/TableRecordTests.swift b/Tests/GRDBTests/TableRecordTests.swift index c42b92fbd..5233b3248 100644 --- a/Tests/GRDBTests/TableRecordTests.swift +++ b/Tests/GRDBTests/TableRecordTests.swift @@ -127,6 +127,12 @@ class TableRecordTests: GRDBTestCase { } func testRecordInAttachedDatabase() throws { + #if SQLITE_HAS_CODEC + // Avoid error due to key not being provided: + // file is not a database - while executing `ATTACH DATABASE...` + throw XCTSkip("This test does not suppport encrypted databases") + #endif + struct Team: Codable, PersistableRecord, FetchableRecord, Equatable { var id: Int64 var name: String @@ -179,6 +185,12 @@ class TableRecordTests: GRDBTestCase { } func testCrossAttachedDatabaseAssociation() throws { + #if SQLITE_HAS_CODEC + // Avoid error due to key not being provided: + // file is not a database - while executing `ATTACH DATABASE...` + throw XCTSkip("This test does not suppport encrypted databases") + #endif + struct Team: Codable, PersistableRecord, FetchableRecord, Equatable { var id: Int64 var name: String