summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2014-04-08 18:43:58 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-04-21 19:54:16 +0200
commit3ad27289fc757bdc6eee8d31ba366a433b36f17f (patch)
tree30c07db3b4fa8ab0404b2fee030a23f7c33fa6dd /nixos
parentad8aeebad83a53392cdaa0356a81d0b1492f6f28 (diff)
downloadnixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.tar
nixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.tar.gz
nixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.tar.bz2
nixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.tar.lz
nixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.tar.xz
nixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.tar.zst
nixlib-3ad27289fc757bdc6eee8d31ba366a433b36f17f.zip
nixos/tests/avahi: Fix race condition on mDNS test
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/avahi.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/avahi.nix b/nixos/tests/avahi.nix
index 4091e7ece501..b6f18087c56f 100644
--- a/nixos/tests/avahi.nix
+++ b/nixos/tests/avahi.nix
@@ -21,12 +21,13 @@ import ./make-test.nix {
 
        # mDNS.
        $one->waitForUnit("network.target");
+       $two->waitForUnit("network.target");
+
        $one->succeed("avahi-resolve-host-name one.local | tee out >&2");
        $one->succeed("test \"`cut -f1 < out`\" = one.local");
        $one->succeed("avahi-resolve-host-name two.local | tee out >&2");
        $one->succeed("test \"`cut -f1 < out`\" = two.local");
 
-       $two->waitForUnit("network.target");
        $two->succeed("avahi-resolve-host-name one.local | tee out >&2");
        $two->succeed("test \"`cut -f1 < out`\" = one.local");
        $two->succeed("avahi-resolve-host-name two.local | tee out >&2");