GRDBTestCase cleanup

This commit is contained in:
Gwendal Roué committed 2016-04-04 13:31:57 +02:00
1 parent b2bc2700b3
commit 15f3450f8c
1 file changed
+3 -3
+3 -3
View File
@@ -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() {