damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 8e92e28fafb06cfff32988d4ba4ce1f601e920b4
parent 5657512370a76b757c26719c9f5981c72bf0d6bc
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 28 Aug 2023 10:34:37 -0700

test: optionally remove lmdb db

otherwise tests fail on CI

Diffstat:
Mnostrdb/Test/NdbTests.swift | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 {