mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 20:20:58 +01:00
tests: Wait for network *online* targets
More prevalent than I thought in 15073e86a
See also https://github.com/NixOS/nix/actions/runs/12872412321/job/35887830320?pr=12310
which is a failed github-flakes test without "Network is Online"
This commit is contained in:
parent
fcc501b730
commit
6f0bdd9ae7
6 changed files with 11 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ in {
|
|||
|
||||
testScript = { nodes }: ''
|
||||
cache.wait_for_unit("harmonia.service")
|
||||
cache.wait_for_unit("network-online.target")
|
||||
|
||||
machine.succeed("mkdir -p /etc/containers")
|
||||
machine.succeed("""echo '{"default":[{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json""")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue