diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-22 21:31:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 21:31:46 +0200 |
commit | 6e6e0a987bde5bdc0c7aa653b7446937135a53fc (patch) | |
tree | 871bd73a4be8b7d341c34bd449c3ddcdc3e357de /nixos/tests/codimd.nix | |
parent | 13e738f1e89869f158035ac6c0b0c118ae5eaf04 (diff) |
nixos/tests/codimd: fix non-deterministic failure (#47179)
Test failed non-deterministically due to an obvious copy/paste error.
Fix it and increase wait time to 10s (2s may not be enough on Hydra).
Diffstat (limited to 'nixos/tests/codimd.nix')
-rw-r--r-- | nixos/tests/codimd.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/codimd.nix b/nixos/tests/codimd.nix index 8f98d9f3fa72..9dedac96844a 100644 --- a/nixos/tests/codimd.nix +++ b/nixos/tests/codimd.nix @@ -40,7 +40,7 @@ import ./make-test.nix ({ pkgs, lib, ... }: subtest "CodiMD sqlite", sub { $codimdSqlite->waitForUnit("codimd.service"); $codimdSqlite->waitForOpenPort(3000); - $codimdPostgres->succeed("sleep 2"); # avoid 503 during startup + $codimdSqlite->sleep(10); # avoid 503 during startup $codimdSqlite->succeed("curl -sSf http://localhost:3000/new"); }; @@ -49,7 +49,7 @@ import ./make-test.nix ({ pkgs, lib, ... }: $codimdPostgres->waitForUnit("codimd.service"); $codimdPostgres->waitForOpenPort(5432); $codimdPostgres->waitForOpenPort(3000); - $codimdPostgres->succeed("sleep 2"); # avoid 503 during startup + $codimdPostgres->sleep(10); # avoid 503 during startup $codimdPostgres->succeed("curl -sSf http://localhost:3000/new"); }; ''; |