mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
nixos/tests/service-runner: Use curl --fail
This commit is contained in:
parent
a6a9e3188d
commit
8a9554bf9b
@ -29,7 +29,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
"""
|
||||
)
|
||||
machine.wait_for_open_port(80)
|
||||
machine.succeed(f"curl {url}")
|
||||
machine.succeed(f"curl -f {url}")
|
||||
machine.succeed("kill -INT $(cat my-nginx.pid)")
|
||||
machine.wait_for_closed_port(80)
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user