nixos/tests/statsd: fix non-deterministic failure

Test failed sometimes because the service took more time to start.

(cherry picked from commit 844698c436d8857fe07cd95a89e967506d9cf98b)
release-18.03-flake
Uli Baum 2018-05-09 12:38:09 +02:00
parent 6b1bc176f4
commit 461e6843b5
1 changed files with 1 additions and 1 deletions

View File

@ -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");
'';
})