mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Skip tests that do not support encrypted databases
This commit is contained in:
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: """
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user