nixos/tests/statsd: fix non-deterministic failure

Test failed sometimes because the service took more time to start.
This commit is contained in:
Uli Baum 2018-05-09 12:38:09 +02:00
parent 1d55c211cb
commit 844698c436

View File

@ -35,6 +35,6 @@ with lib;
testScript = '' testScript = ''
$statsd1->start(); $statsd1->start();
$statsd1->waitForUnit("statsd.service"); $statsd1->waitForUnit("statsd.service");
$statsd1->succeed("nc -z 127.0.0.1 8126"); $statsd1->waitUntilSucceeds("nc -z 127.0.0.1 8126");
''; '';
}) })