about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/incus/preseed.nix7
-rw-r--r--nixos/tests/incus/socket-activated.nix1
2 files changed, 2 insertions, 6 deletions
diff --git a/nixos/tests/incus/preseed.nix b/nixos/tests/incus/preseed.nix
index 19ec3889093c..47b2d0cd6228 100644
--- a/nixos/tests/incus/preseed.nix
+++ b/nixos/tests/incus/preseed.nix
@@ -49,13 +49,8 @@ import ../make-test-python.nix ({ pkgs, lib, ... } :
   };
 
   testScript = ''
-    def wait_for_preseed(_) -> bool:
-      _, output = machine.systemctl("is-active incus-preseed.service")
-      return ("inactive" in output)
-
     machine.wait_for_unit("incus.service")
-    with machine.nested("Waiting for preseed to complete"):
-      retry(wait_for_preseed)
+    machine.wait_for_unit("incus-preseed.service")
 
     with subtest("Verify preseed resources created"):
       machine.succeed("incus profile show nixostest_default")
diff --git a/nixos/tests/incus/socket-activated.nix b/nixos/tests/incus/socket-activated.nix
index e48831cd3cb3..4d25b26a15f5 100644
--- a/nixos/tests/incus/socket-activated.nix
+++ b/nixos/tests/incus/socket-activated.nix
@@ -17,6 +17,7 @@ import ../make-test-python.nix ({ pkgs, lib, ... } :
 
     # ensure service is not running by default
     machine.fail("systemctl is-active incus.service")
+    machine.fail("systemctl is-active incus-preseed.service")
 
     # access the socket and ensure the service starts
     machine.succeed("incus list")