Skip to content

Commit

Permalink
Merge pull request #273273 from numinit/nebula-test-improvement
Browse files Browse the repository at this point in the history
nixos/nebula: fix possibly flaky tests
  • Loading branch information
NickCao authored Dec 10, 2023
2 parents 64292b0 + ce5124d commit d8c2a39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nixos/tests/nebula.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ in

restartAndCheckNebula = name: ip: ''
${name}.systemctl("restart [email protected]")
${name}.wait_for_unit("[email protected]")
${name}.succeed("ping -c5 ${ip}")
'';

Expand Down Expand Up @@ -179,6 +180,8 @@ in
${nodeB}.succeed("iptables -I INPUT -s " + node_a + " -j DROP")
${nodeA}.systemctl("restart [email protected]")
${nodeB}.systemctl("restart [email protected]")
${nodeA}.wait_for_unit("[email protected]")
${nodeB}.wait_for_unit("[email protected]")
'';
allowTrafficBetween = nodeA: nodeB: ''
node_a = ${getPublicIp nodeA}
Expand All @@ -187,6 +190,8 @@ in
${nodeB}.succeed("iptables -D INPUT -s " + node_a + " -j DROP")
${nodeA}.systemctl("restart [email protected]")
${nodeB}.systemctl("restart [email protected]")
${nodeA}.wait_for_unit("[email protected]")
${nodeB}.wait_for_unit("[email protected]")
'';
in ''
# Create the certificate and sign the lighthouse's keys.
Expand Down

0 comments on commit d8c2a39

Please sign in to comment.