nixos/tests/avahi: Fix race condition on mDNS test

This commit is contained in:
Ricardo M. Correia 2014-04-08 18:43:58 +02:00 committed by Bjørn Forsman
parent ad8aeebad8
commit 3ad27289fc

View File

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