nixos/tests/hitch: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 08:55:42 -07:00 committed by Frederik Rietdijk
parent 19034ed7a4
commit 1abfb504b1

View file

@ -28,6 +28,6 @@ import ../make-test-python.nix ({ pkgs, ... }:
machine.wait_for_unit("multi-user.target") machine.wait_for_unit("multi-user.target")
machine.wait_for_unit("hitch.service") machine.wait_for_unit("hitch.service")
machine.wait_for_open_port(443) machine.wait_for_open_port(443)
assert "We are all good!" in machine.succeed("curl -k https://localhost:443/index.txt") assert "We are all good!" in machine.succeed("curl -fk https://localhost:443/index.txt")
''; '';
}) })