nixos/tests/sslh: Use curl --fail

gstqt5
Scott Worley 2020-09-16 08:30:16 -07:00 committed by Frederik Rietdijk
parent 8a9554bf9b
commit ebeb8d7287
1 changed files with 1 additions and 1 deletions

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"
'';
}