From 5c0fd1644848ee304bfc72619388146c23b7ac43 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 25 Sep 2018 16:01:26 +0300 Subject: [PATCH] Fix an issue with the Sqlite3 tests (the in-memory DB was not properly used) --- nimbus/db/backends/sqlite_backend.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus/db/backends/sqlite_backend.nim b/nimbus/db/backends/sqlite_backend.nim index c3ff95ee5..d4a051d59 100644 --- a/nimbus/db/backends/sqlite_backend.nim +++ b/nimbus/db/backends/sqlite_backend.nim @@ -11,7 +11,7 @@ type proc newChainDB*(basePath: string, inMemory = false): ChainDB = result.new() - let dbPath = basePath / (if inMemory: ":memory:" else: "nimbus.db") + let dbPath = if inMemory: ":memory:" else: basePath / "nimbus.db" var s = sqlite3.open(dbPath, result.store) if s != SQLITE_OK: raiseStorageInitError()