File tree Expand file tree Collapse file tree 6 files changed +11
-0
lines changed
Expand file tree Collapse file tree 6 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 4646 remote.wait_for_unit("sshd")
4747 remote.wait_for_unit("multi-user.target")
4848 remote.wait_for_unit("network-online.target")
49+ client.wait_for_unit("network-online.target")
4950 client.succeed(f"ssh -o StrictHostKeyChecking=no {remote.name} 'echo hello world'")
5051
5152 remote.succeed("""
Original file line number Diff line number Diff line change 161161 github.succeed("cat /var/log/httpd/*.log >&2")
162162
163163 github.wait_for_unit("httpd.service")
164+ github.wait_for_unit("network-online.target")
164165
166+ client.wait_for_unit("network-online.target")
165167 client.succeed("curl -v https://github.com/ >&2")
166168 out = client.succeed("nix registry list")
167169 print(out)
Original file line number Diff line number Diff line change 3737
3838 testScript = { nodes } : ''
3939 cache.wait_for_unit("harmonia.service")
40+ cache.wait_for_unit("network-online.target")
4041
4142 machine.succeed("mkdir -p /etc/containers")
4243 machine.succeed("""echo '{"default":[{"type":"insecureAcceptAnything"}]}' > /etc/containers/policy.json""")
Original file line number Diff line number Diff line change 102102 } ;
103103
104104 testScript = { nodes , ... } : ''
105+ http_dns.wait_for_unit("network-online.target")
105106 http_dns.wait_for_unit("nginx")
106107 http_dns.wait_for_open_port(80)
107108 http_dns.wait_for_unit("unbound")
108109 http_dns.wait_for_open_port(53)
109110
110111 client.start()
111112 client.wait_for_unit('multi-user.target')
113+ client.wait_for_unit('network-online.target')
112114
113115 with subtest("can fetch data from a remote server outside sandbox"):
114116 client.succeed("nix --version >&2")
Original file line number Diff line number Diff line change 5252
5353 # Create a binary cache.
5454 server.wait_for_unit("minio")
55+ server.wait_for_unit("network-online.target")
5556
5657 server.succeed("mc config host add minio http://localhost:9000 ${ accessKey } ${ secretKey } --api s3v4")
5758 server.succeed("mc mb minio/my-cache")
5859
5960 server.succeed("${ env } nix copy --to '${ storeUrl } ' ${ pkgA } ")
6061
62+ client.wait_for_unit("network-online.target")
63+
6164 # Test fetchurl on s3:// URLs while we're at it.
6265 client.succeed("${ env } nix eval --impure --expr 'builtins.fetchurl { name = \"foo\"; url = \"s3://my-cache/nix-cache-info?endpoint=http://server:9000®ion=eu-west-1\"; }'")
6366
Original file line number Diff line number Diff line change 122122 start_all()
123123
124124 sourcehut.wait_for_unit("httpd.service")
125+ sourcehut.wait_for_unit("network-online.target")
126+ client.wait_for_unit("network-online.target")
125127
126128 client.succeed("curl -v https://git.sr.ht/ >&2")
127129 client.succeed("nix registry list | grep nixpkgs")
You can’t perform that action at this time.
0 commit comments