about summary refs log tree commit diff
path: root/nixos/tests/hostname.nix
diff options
context:
space:
mode:
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):