mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
tests: Wait for network *online* targets
More prevalent than I thought in15073e86a
See also3588783032
which is a failed github-flakes test without "Network is Online" (cherry picked from commit6f0bdd9ae7
) # Conflicts: # tests/nixos/nix-docker.nix
This commit is contained in:
parent
df5246dd8e
commit
0284eef493
6 changed files with 64 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
|||
remote.wait_for_unit("sshd")
|
||||
remote.wait_for_unit("multi-user.target")
|
||||
remote.wait_for_unit("network-online.target")
|
||||
client.wait_for_unit("network-online.target")
|
||||
client.succeed(f"ssh -o StrictHostKeyChecking=no {remote.name} 'echo hello world'")
|
||||
|
||||
remote.succeed("""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue