Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

authored by Ricardo M. Correia and committed by Bjørn Forsman 3ad27289 ad8aeeba

+2 -1
+2 -1
nixos/tests/avahi.nix
··· 21 21 22 22 # mDNS. 23 23 $one->waitForUnit("network.target"); 24 + $two->waitForUnit("network.target"); 25 + 24 26 $one->succeed("avahi-resolve-host-name one.local | tee out >&2"); 25 27 $one->succeed("test \"`cut -f1 < out`\" = one.local"); 26 28 $one->succeed("avahi-resolve-host-name two.local | tee out >&2"); 27 29 $one->succeed("test \"`cut -f1 < out`\" = two.local"); 28 30 29 - $two->waitForUnit("network.target"); 30 31 $two->succeed("avahi-resolve-host-name one.local | tee out >&2"); 31 32 $two->succeed("test \"`cut -f1 < out`\" = one.local"); 32 33 $two->succeed("avahi-resolve-host-name two.local | tee out >&2");