1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00

tests: Wait for network *online* targets

More prevalent than I thought in 15073e86a

See also 3588783032
which is a failed github-flakes test without "Network is Online"
This commit is contained in:
Robert Hensing 2025-01-20 18:21:07 +01:00
parent fcc501b730
commit 6f0bdd9ae7
6 changed files with 11 additions and 0 deletions

View file

@ -161,7 +161,9 @@ in
github.succeed("cat /var/log/httpd/*.log >&2")
github.wait_for_unit("httpd.service")
github.wait_for_unit("network-online.target")
client.wait_for_unit("network-online.target")
client.succeed("curl -v https://github.com/ >&2")
out = client.succeed("nix registry list")
print(out)