diff options
Diffstat (limited to 'tests/testament/backend.nim')
-rw-r--r-- | tests/testament/backend.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testament/backend.nim b/tests/testament/backend.nim index 9ec0c0973..671b5c8b7 100644 --- a/tests/testament/backend.nim +++ b/tests/testament/backend.nim @@ -112,7 +112,8 @@ proc writeTestResult*(name, category, target, thisCommit, thisMachine) proc open*() = - db = open(connection="testament.db", user="testament", password="", + let dbFile = if existsEnv("TRAVIS") or existsEnv("APPVEYOR"): ":memory:" else: "testament.db" + db = open(connection=dbFile, user="testament", password="", database="testament") createDb() thisMachine = getMachine(db) |