diff --git a/nixos/tests/xss-lock.nix b/nixos/tests/xss-lock.nix index 3e3864cab770..045667bdcdec 100644 --- a/nixos/tests/xss-lock.nix +++ b/nixos/tests/xss-lock.nix @@ -20,6 +20,6 @@ with lib; $machine->fail("pgrep xlock"); $machine->succeed("su -l alice -c 'xset dpms force standby'"); - $machine->succeed("pgrep xlock"); + $machine->waitUntilSucceeds("pgrep xlock"); ''; })