Skip to content

Commit

Permalink
nixos/tests/statsd: fix non-deterministic failure
Browse files Browse the repository at this point in the history
Test failed sometimes because the service took more time to start.

(cherry picked from commit 844698c)
  • Loading branch information
xeji committed May 10, 2018
1 parent 6b1bc17 commit 461e684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/tests/statsd.nix
Expand Up @@ -35,6 +35,6 @@ with lib;
testScript = ''
$statsd1->start();
$statsd1->waitForUnit("statsd.service");
$statsd1->succeed("nc -z 127.0.0.1 8126");
$statsd1->waitUntilSucceeds("nc -z 127.0.0.1 8126");
'';
})

0 comments on commit 461e684

Please sign in to comment.