diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2014-04-08 18:43:58 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-04-21 19:54:16 +0200 |
commit | 3ad27289fc757bdc6eee8d31ba366a433b36f17f (patch) | |
tree | 30c07db3b4fa8ab0404b2fee030a23f7c33fa6dd /nixos/tests/avahi.nix | |
parent | ad8aeebad83a53392cdaa0356a81d0b1492f6f28 (diff) |
nixos/tests/avahi: Fix race condition on mDNS test
Diffstat (limited to 'nixos/tests/avahi.nix')
-rw-r--r-- | nixos/tests/avahi.nix | 3 |
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"); |