diff options
author | Jade Lovelace <software@lfcode.ca> | 2023-10-03 00:38:37 -0700 |
---|---|---|
committer | Jade Lovelace <software@lfcode.ca> | 2024-01-18 16:28:41 -0800 |
commit | a80464eee4accc21304c1a0cfdcdb50a8749cd9f (patch) | |
tree | cf537e8c85906265117cacdba07183d533cb572e | |
parent | 05dc4bd146052188e2d40399dd5b3aa247e29625 (diff) |
nixos/tests: fix bittorrent under network-online dep fix
-rw-r--r-- | nixos/tests/bittorrent.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/bittorrent.nix b/nixos/tests/bittorrent.nix index 4a73fea6a09d0..473b05d4c98e8 100644 --- a/nixos/tests/bittorrent.nix +++ b/nixos/tests/bittorrent.nix @@ -115,6 +115,7 @@ in start_all() # Wait for network and miniupnpd. + router.systemctl("start network-online.target") router.wait_for_unit("network-online.target") router.wait_for_unit("miniupnpd") @@ -129,6 +130,7 @@ in tracker.succeed("chmod 644 /tmp/test.torrent") # Start the tracker. !!! use a less crappy tracker + tracker.systemctl("start network-online.target") tracker.wait_for_unit("network-online.target") tracker.wait_for_unit("opentracker.service") tracker.wait_for_open_port(6969) @@ -140,6 +142,7 @@ in # Now we should be able to download from the client behind the NAT. tracker.wait_for_unit("httpd") + client1.systemctl("start network-online.target") client1.wait_for_unit("network-online.target") client1.succeed("transmission-remote --add http://${externalTrackerAddress}/test.torrent >&2 &") client1.wait_for_file("${download-dir}/test.tar.bz2") @@ -152,6 +155,7 @@ in # Now download from the second client. This can only succeed if # the first client created a NAT hole in the router. + client2.systemctl("start network-online.target") client2.wait_for_unit("network-online.target") client2.succeed( "transmission-remote --add http://${externalTrackerAddress}/test.torrent --no-portmap --no-dht >&2 &" |