nixos/tests/unit-php: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 08:50:41 -07:00 committed by Frederik Rietdijk
parent 726950775d
commit 6e46a88dfb

View file

@ -47,7 +47,7 @@ in {
machine.wait_for_unit("unit.service")
# Check so we get an evaluated PHP back
response = machine.succeed("curl -vvv -s http://127.0.0.1:9074/")
response = machine.succeed("curl -f -vvv -s http://127.0.0.1:9074/")
assert "PHP Version ${pkgs.unit.usedPhp74.version}" in response, "PHP version not detected"
# Check so we have database and some other extensions loaded