From 844698c436d8857fe07cd95a89e967506d9cf98b Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Wed, 9 May 2018 12:38:09 +0200 Subject: [PATCH] nixos/tests/statsd: fix non-deterministic failure Test failed sometimes because the service took more time to start. --- nixos/tests/statsd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/statsd.nix b/nixos/tests/statsd.nix index a9d7dc61cb60..c71949249a4b 100644 --- a/nixos/tests/statsd.nix +++ b/nixos/tests/statsd.nix @@ -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"); ''; })