Fix an issue with the Sqlite3 tests (the in-memory DB was not properly used)

This commit is contained in:
Zahary Karadjov 2018-09-25 16:01:26 +03:00
parent 3a3a56861e
commit 5c0fd16448
1 changed files with 1 additions and 1 deletions

View File

@ -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()