Fix an issue with the Sqlite3 tests (the in-memory DB was not properly used)
This commit is contained in:
parent
3a3a56861e
commit
5c0fd16448
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue