about summary refs log tree commit diff
path: root/nixos/tests/hostname.nix
diff options
context:
space:
mode:
authorJade Lovelace <software@lfcode.ca>2023-10-03 00:53:37 -0700
committerJade Lovelace <software@lfcode.ca>2024-01-18 16:28:42 -0800
commit9067ecf283d13646c8272d03a88e96031a9a92fd (patch)
tree564944335d192d1befcd21e0f58928888ae7fffd /nixos/tests/hostname.nix
parentcc63754f5677b318f2db9e0a2e70ca36b4931687 (diff)
nixos/tests: fix hostname under network-online dep fix [BROKEN]
Diffstat (limited to 'nixos/tests/hostname.nix')
-rw-r--r--nixos/tests/hostname.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/hostname.nix b/nixos/tests/hostname.nix
index 6122e2ffeb83a..dffec956bc0b6 100644
--- a/nixos/tests/hostname.nix
+++ b/nixos/tests/hostname.nix
@@ -34,6 +34,7 @@ let
 
         machine = ${hostName}
 
+        machine.systemctl("start network-online.target")
         machine.wait_for_unit("network-online.target")
 
         # Test if NixOS computes the correct FQDN (either a FQDN or an error/null):