diff options
author | Scott Worley <scottworley@scottworley.com> | 2020-09-16 10:00:25 -0700 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-10-25 11:01:31 +0100 |
commit | c25ccf6b4b1269cb9e2694779dd4590495e68c57 (patch) | |
tree | 2827a48e84d5d7439b8d955815d72bd937c01754 /nixos/tests | |
parent | f6ecfdac39f3e60560c3bb87e16656a51d102866 (diff) |
nixos/tests/docker-tools: Use curl --fail
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/docker-tools.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/docker-tools.nix b/nixos/tests/docker-tools.nix index edb9aec62db30..c1c41b0fc1100 100644 --- a/nixos/tests/docker-tools.nix +++ b/nixos/tests/docker-tools.nix @@ -115,7 +115,7 @@ import ./make-test-python.nix ({ pkgs, ... }: { "docker load --input='${examples.nginx}'", "docker run --name nginx -d -p 8000:80 ${examples.nginx.imageName}", ) - docker.wait_until_succeeds("curl http://localhost:8000/") + docker.wait_until_succeeds("curl -f http://localhost:8000/") docker.succeed( "docker rm --force nginx", "docker rmi '${examples.nginx.imageName}'", ) |