mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 05:14:14 +00:00
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…
x
Reference in New Issue
Block a user