From ebeb8d72876d399e2f700e57955ea6237a01c5d5 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 16 Sep 2020 08:30:16 -0700 Subject: [PATCH] nixos/tests/sslh: Use curl --fail --- nixos/tests/sslh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/sslh.nix b/nixos/tests/sslh.nix index 2a800aa52d0..17094606e8e 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" ''; }