about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/web-apps/healthchecks.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/nixos/tests/web-apps/healthchecks.nix')
-rw-r--r--nixpkgs/nixos/tests/web-apps/healthchecks.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixpkgs/nixos/tests/web-apps/healthchecks.nix b/nixpkgs/nixos/tests/web-apps/healthchecks.nix
index 41374f5e314b..41c40cd5dd8d 100644
--- a/nixpkgs/nixos/tests/web-apps/healthchecks.nix
+++ b/nixpkgs/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")
   '';
 })