From 6e6e0a987bde5bdc0c7aa653b7446937135a53fc Mon Sep 17 00:00:00 2001 From: xeji <36407913+xeji@users.noreply.github.com> Date: Sat, 22 Sep 2018 21:31:46 +0200 Subject: [PATCH] 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). --- nixos/tests/codimd.nix | 4 ++-- 1 file 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"); }; '';