about summary refs log tree commit diff
path: root/nixos/tests/sslh.nix
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2020-09-16 08:30:16 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-10-25 11:01:30 +0100
commitebeb8d72876d399e2f700e57955ea6237a01c5d5 (patch)
treea1ddc7ce034774c4b635f77edbd044f44baa7f2b /nixos/tests/sslh.nix
parent8a9554bf9b18c02baabea69968843c9b7c1db635 (diff)
nixos/tests/sslh: Use curl --fail
Diffstat (limited to 'nixos/tests/sslh.nix')
-rw-r--r--nixos/tests/sslh.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/sslh.nix b/nixos/tests/sslh.nix
index 2a800aa52d0aa..17094606e8e6b 100644
--- a/nixos/tests/sslh.nix
+++ b/nixos/tests/sslh.nix
@@ -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"
   '';
 }