mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
GRDBTestCase cleanup
This commit is contained in:
1 parent
b2bc2700b3
commit
15f3450f8c
1 file changed
+3
-3
@@ -43,9 +43,10 @@ class GRDBTestCase: XCTestCase {
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
|
||||
|
||||
let dbPoolDirectoryName = "GRDBTestCase-\(NSProcessInfo.processInfo().globallyUniqueString)"
|
||||
dbDirectoryPath = (NSTemporaryDirectory() as NSString).stringByAppendingPathComponent(dbPoolDirectoryName)
|
||||
do { try NSFileManager.defaultManager().removeItemAtPath(dbDirectoryPath) } catch { }
|
||||
|
||||
dbConfiguration = Configuration()
|
||||
dbConfiguration.trace = { (sql) in
|
||||
@@ -55,13 +56,12 @@ class GRDBTestCase: XCTestCase {
|
||||
}
|
||||
|
||||
#if GRDBCIPHER_USE_ENCRYPTION
|
||||
// We are testing encrypted databases.
|
||||
dbConfiguration.passphrase = "secret"
|
||||
#endif
|
||||
|
||||
sqlQueries = []
|
||||
lastSQLQuery = nil
|
||||
|
||||
do { try NSFileManager.defaultManager().removeItemAtPath(dbDirectoryPath) } catch { }
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
|
||||
Reference in new issue
Block a user