From 8e92e28fafb06cfff32988d4ba4ce1f601e920b4 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 28 Aug 2023 10:34:37 -0700 Subject: [PATCH] test: optionally remove lmdb db otherwise tests fail on CI --- nostrdb/Test/NdbTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostrdb/Test/NdbTests.swift b/nostrdb/Test/NdbTests.swift index 846fff0c..6466d7a0 100644 --- a/nostrdb/Test/NdbTests.swift +++ b/nostrdb/Test/NdbTests.swift @@ -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 {