diff options
author | Nick Cao <nickcao@nichi.co> | 2023-12-10 11:45:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-10 11:45:17 -0500 |
commit | d8c2a3967bef843ef96eef2d627647dfba21c599 (patch) | |
tree | 4fa1c2fe22f698b40fb54ae2b6a397e83cac3a30 /nixos/tests | |
parent | 64292b08dc5d1538d7ab88817a90b2713c34c8a0 (diff) | |
parent | ce5124df923d09ca9db71768b831f17cf065b1a2 (diff) | |
download | nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.tar nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.tar.gz nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.tar.bz2 nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.tar.lz nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.tar.xz nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.tar.zst nixlib-d8c2a3967bef843ef96eef2d627647dfba21c599.zip |
Merge pull request #273273 from numinit/nebula-test-improvement
nixos/nebula: fix possibly flaky tests
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/nebula.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/tests/nebula.nix b/nixos/tests/nebula.nix index 89b91d89fcb3..1bece2200f23 100644 --- a/nixos/tests/nebula.nix +++ b/nixos/tests/nebula.nix @@ -144,6 +144,7 @@ in restartAndCheckNebula = name: ip: '' ${name}.systemctl("restart nebula@smoke.service") + ${name}.wait_for_unit("nebula@smoke.service") ${name}.succeed("ping -c5 ${ip}") ''; @@ -179,6 +180,8 @@ in ${nodeB}.succeed("iptables -I INPUT -s " + node_a + " -j DROP") ${nodeA}.systemctl("restart nebula@smoke.service") ${nodeB}.systemctl("restart nebula@smoke.service") + ${nodeA}.wait_for_unit("nebula@smoke.service") + ${nodeB}.wait_for_unit("nebula@smoke.service") ''; allowTrafficBetween = nodeA: nodeB: '' node_a = ${getPublicIp nodeA} @@ -187,6 +190,8 @@ in ${nodeB}.succeed("iptables -D INPUT -s " + node_a + " -j DROP") ${nodeA}.systemctl("restart nebula@smoke.service") ${nodeB}.systemctl("restart nebula@smoke.service") + ${nodeA}.wait_for_unit("nebula@smoke.service") + ${nodeB}.wait_for_unit("nebula@smoke.service") ''; in '' # Create the certificate and sign the lighthouse's keys. |