From dcdbf68a6874fd481e9035d064075fe9c6183bf6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 10 Jan 2010 16:31:19 +0000 Subject: [PATCH] * Add a sleep before initialising the Trac database. This shouldn't be necessary, because waitForJob shouldn't return until Postgres is up and running, but we still get errors like this: postgresql: running command: initctl status postgresql postgresql: exit status 0 postgresql: running command: createdb trac postgresql# createdb: could not connect to database postgres: FATAL: the database system is starting up postgresql: exit status 1 svn path=/nixos/trunk/; revision=19329 --- tests/trac.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/trac.nix b/tests/trac.nix index 6bb3413cea9e..4a2fc665bf77 100644 --- a/tests/trac.nix +++ b/tests/trac.nix @@ -56,6 +56,7 @@ startAll; $postgresql->waitForJob("postgresql"); + sleep 10; # !!! should not be needed $postgresql->mustSucceed("createdb trac"); $webserver->mustSucceed("mkdir -p /repos/trac");