1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

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 {