We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48d146 commit c648408Copy full SHA for c648408
Tests/SQLiteTests/CipherTests.swift
@@ -88,6 +88,11 @@ class CipherTests: XCTestCase {
88
try! FileManager.default.setAttributes([FileAttributeKey.immutable : 1], ofItemAtPath: encryptedFile)
89
XCTAssertFalse(FileManager.default.isWritableFile(atPath: encryptedFile))
90
91
+ defer {
92
+ // ensure file can be cleaned up afterwards
93
+ try! FileManager.default.setAttributes([FileAttributeKey.immutable : 0], ofItemAtPath: encryptedFile)
94
+ }
95
+
96
let conn = try! Connection(encryptedFile)
97
try! conn.key("sqlcipher-test")
98
XCTAssertEqual(1, try! conn.scalar("SELECT count(*) FROM foo") as? Int64)
0 commit comments