nixos/tests/sslh: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 08:30:16 -07:00 committed by Frederik Rietdijk
parent 8a9554bf9b
commit ebeb8d7287

View File

@ -78,6 +78,6 @@ import ./make-test-python.nix {
server.succeed(f"grep '{ip}' /tmp/foo{arg}")
# check that http through sslh works
assert client.succeed(f"curl {arg} http://server:443").strip() == "hello world"
assert client.succeed(f"curl -f {arg} http://server:443").strip() == "hello world"
'';
}