Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixos/tests: fix non-determinism for good

authored by

WilliButz and committed by
Robin Gloster
cf474236 ce5e1b5b

+2 -4
+2 -4
nixos/tests/codimd.nix
··· 40 subtest "CodiMD sqlite", sub { 41 $codimdSqlite->waitForUnit("codimd.service"); 42 $codimdSqlite->waitForOpenPort(3000); 43 - $codimdSqlite->sleep(10); # avoid 503 during startup 44 - $codimdSqlite->succeed("curl -sSf http://localhost:3000/new"); 45 }; 46 47 subtest "CodiMD postgres", sub { ··· 49 $codimdPostgres->waitForUnit("codimd.service"); 50 $codimdPostgres->waitForOpenPort(5432); 51 $codimdPostgres->waitForOpenPort(3000); 52 - $codimdPostgres->sleep(10); # avoid 503 during startup 53 - $codimdPostgres->succeed("curl -sSf http://localhost:3000/new"); 54 }; 55 ''; 56 })
··· 40 subtest "CodiMD sqlite", sub { 41 $codimdSqlite->waitForUnit("codimd.service"); 42 $codimdSqlite->waitForOpenPort(3000); 43 + $codimdSqlite->waitUntilSucceeds("curl -sSf http://localhost:3000/new"); 44 }; 45 46 subtest "CodiMD postgres", sub { ··· 48 $codimdPostgres->waitForUnit("codimd.service"); 49 $codimdPostgres->waitForOpenPort(5432); 50 $codimdPostgres->waitForOpenPort(3000); 51 + $codimdPostgres->waitUntilSucceeds("curl -sSf http://localhost:3000/new"); 52 }; 53 ''; 54 })