From 5ea8221772c87e1779b4f19ccd023c20dc4be64e Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 27 Dec 2024 23:09:57 +0100 Subject: [PATCH] nixos/tests/wireguard: fix broken network-online.target checks This patch fixes the networkd and dynamic-refresh-networkd tests not working since 2370696dff55228ca605ee74074b00715573e2b7. --- nixos/tests/wireguard/dynamic-refresh.nix | 3 +++ nixos/tests/wireguard/networkd.nix | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nixos/tests/wireguard/dynamic-refresh.nix b/nixos/tests/wireguard/dynamic-refresh.nix index e0af6bc025aa..2a8fb0598833 100644 --- a/nixos/tests/wireguard/dynamic-refresh.nix +++ b/nixos/tests/wireguard/dynamic-refresh.nix @@ -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") diff --git a/nixos/tests/wireguard/networkd.nix b/nixos/tests/wireguard/networkd.nix index beaba5a4343a..17d164ff77f2 100644 --- a/nixos/tests/wireguard/networkd.nix +++ b/nixos/tests/wireguard/networkd.nix @@ -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")