diff --git a/nixos/tests/web-apps/healthchecks.nix b/nixos/tests/web-apps/healthchecks.nix index 41374f5e314b..41c40cd5dd8d 100644 --- a/nixos/tests/web-apps/healthchecks.nix +++ b/nixos/tests/web-apps/healthchecks.nix @@ -33,10 +33,10 @@ import ../make-test-python.nix ({ lib, pkgs, ... }: { ) with subtest("Manage script works"): - # Should fail if not called by healthchecks user - machine.fail("echo 'print(\"foo\")' | healthchecks-manage help") - # "shell" sucommand should succeed, needs python in PATH. assert "foo\n" == machine.succeed("echo 'print(\"foo\")' | sudo -u healthchecks healthchecks-manage shell") + + # Shouldn't fail if not called by healthchecks user + assert "foo\n" == machine.succeed("echo 'print(\"foo\")' | healthchecks-manage shell") ''; })