mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
test: optionally remove lmdb db
otherwise tests fail on CI
This commit is contained in:
parent
5657512370
commit
8e92e28faf
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user