nixos/tests/wireguard: fix broken network-online.target checks

This patch fixes the networkd and dynamic-refresh-networkd
tests not working since 2370696dff.
This commit is contained in:
networkException 2024-12-27 23:09:57 +01:00
parent 068e60252d
commit 5ea8221772
No known key found for this signature in database
GPG key ID: E3877443AE684391
2 changed files with 8 additions and 2 deletions

View file

@ -84,7 +84,10 @@ import ../make-test-python.nix (
''
start_all()
server.systemctl("start network-online.target")
server.wait_for_unit("network-online.target")
client.systemctl("start network-online.target")
client.wait_for_unit("network-online.target")
client.succeed("ping -n -w 1 -c 1 10.23.42.1")

View file

@ -79,8 +79,11 @@ import ../make-test-python.nix (
testScript = ''
start_all()
peer0.wait_for_unit("systemd-networkd-wait-online.service")
peer1.wait_for_unit("systemd-networkd-wait-online.service")
peer0.systemctl("start network-online.target")
peer0.wait_for_unit("network-online.target")
peer1.systemctl("start network-online.target")
peer1.wait_for_unit("network-online.target")
peer1.succeed("ping -c5 fc00::1")
peer1.succeed("ping -c5 10.23.42.1")