test: optionally remove lmdb db
otherwise tests fail on CI
This commit is contained in:
1 parent
5657512370
commit
8e92e28faf
1 file changed
+2
-2
@@ -12,8 +12,8 @@ final class NdbTests: XCTestCase {
|
|||||||
|
|
||||||
override func setUpWithError() throws {
|
override func setUpWithError() throws {
|
||||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||||
try FileManager.default.removeItem(atPath: Ndb.db_path + "/lock.mdb")
|
try? FileManager.default.removeItem(atPath: Ndb.db_path + "/lock.mdb")
|
||||||
try FileManager.default.removeItem(atPath: Ndb.db_path + "/data.mdb")
|
try? FileManager.default.removeItem(atPath: Ndb.db_path + "/data.mdb")
|
||||||
}
|
}
|
||||||
|
|
||||||
override func tearDownWithError() throws {
|
override func tearDownWithError() throws {
|
||||||
|
|||||||
Reference in new issue
Block a user