test: optionally remove lmdb db

otherwise tests fail on CI
This commit is contained in:
William Casarin
2023-08-28 10:34:37 -07:00
parent 5657512370
commit 8e92e28faf

View File

@@ -12,8 +12,8 @@ final class NdbTests: XCTestCase {
override func setUpWithError() throws {
// 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 + "/data.mdb")
try? FileManager.default.removeItem(atPath: Ndb.db_path + "/lock.mdb")
try? FileManager.default.removeItem(atPath: Ndb.db_path + "/data.mdb")
}
override func tearDownWithError() throws {