nixos/tests/statsd: fix non-deterministic failure
Test failed sometimes because the service took more time to start.
commit844698c436d8857fe07cd95a89e967506d9cf98b
authorUli Baum <xeji@cat3.de>
dateWed 9 May 2018, 12:38 (9 years ago)
parent1d55c21
nixos/tests/statsd.nix+1−1
@@ -35,6 +35,6 @@ with lib;
3535 testScript = ''
3636 $statsd1->start();
3737 $statsd1->waitForUnit("statsd.service");
38− $statsd1->succeed("nc -z 127.0.0.1 8126");
38+ $statsd1->waitUntilSucceeds("nc -z 127.0.0.1 8126");
3939 '';
4040})