From 8ee75233d47b0376a9612d86a955c4e16ea153be Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 22 May 2018 22:21:59 +0100 Subject: [PATCH] Fixes travis failure by creating test DB earlier. --- public/images/logo.png | 1 - tests/browsertester.nim | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 120000 public/images/logo.png diff --git a/public/images/logo.png b/public/images/logo.png deleted file mode 120000 index b3d7ee4..0000000 --- a/public/images/logo.png +++ /dev/null @@ -1 +0,0 @@ -/Users/dom/projects/nimforum/forum.nim-lang.org/public/images/logo.png \ No newline at end of file diff --git a/tests/browsertester.nim b/tests/browsertester.nim index 1258bf9..77d4ada 100644 --- a/tests/browsertester.nim +++ b/tests/browsertester.nim @@ -21,8 +21,7 @@ const backend = "forum" const port = 5000 const baseUrl = "http://localhost:" & $port & "/" template withBackend(body: untyped): untyped = - ## Starts a new backend instance with a fresh DB. - doAssert(execCmd("nimble testdb") == QuitSuccess) + ## Starts a new backend instance. spawn runProcess("nimble -y runbackend") defer: @@ -51,6 +50,9 @@ when isMainModule: defer: discard execCmd("killall geckodriver") + # Create a fresh DB for the tester. + doAssert(execCmd("nimble testdb") == QuitSuccess) + doAssert(execCmd("nimble -y frontend") == QuitSuccess) echo("Waiting for geckodriver to startup...") sleep(5000)