0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/tests/networking: fix flaky scripted.dhcpSimple test

The underlying issue is unknown, but starting
the router first and then the client makes the test not flaky.

(cherry picked from commit 92df50f4d0)
This commit is contained in:
misuzu 2024-12-04 20:16:43 +02:00 committed by github-actions[bot]
parent 66dddf2c2a
commit 8d9ce6aa45

View file

@ -120,12 +120,13 @@ let
};
};
testScript = ''
start_all()
client.wait_for_unit("network.target")
router.start()
router.systemctl("start network-online.target")
router.wait_for_unit("network-online.target")
client.start()
client.wait_for_unit("network.target")
with subtest("Wait until we have an ip address on each interface"):
client.wait_until_succeeds("ip addr show dev enp1s0 | grep -q '192.168.1'")
client.wait_until_succeeds("ip addr show dev enp1s0 | grep -q 'fd00:1234:5678:1:'")