Skip tests that do not support encrypted databases

This commit is contained in:
Gwendal Roué committed 2021-05-29 13:26:17 +02:00
1 parent af13c91744
commit 1693a706e0
2 files changed
+18

No files matched your search

@@ -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: """
+12
View File
@@ -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