1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

nixos/tests/convos: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 09:01:44 -07:00 committed by Frederik Rietdijk
parent 1abfb504b1
commit eff7338d98

View file

@ -25,6 +25,6 @@ in
machine.wait_for_unit("convos")
machine.wait_for_open_port("${toString port}")
machine.succeed("journalctl -u convos | grep -q 'Listening at.*${toString port}'")
machine.succeed("curl http://localhost:${toString port}/")
machine.succeed("curl -f http://localhost:${toString port}/")
'';
})