about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/hostname.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/hostname.nix')
-rw-r--r--nixpkgs/nixos/tests/hostname.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/hostname.nix b/nixpkgs/nixos/tests/hostname.nix
index 6122e2ffeb83..dffec956bc0b 100644
--- a/nixpkgs/nixos/tests/hostname.nix
+++ b/nixpkgs/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):