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:
parent
1abfb504b1
commit
eff7338d98
|
@ -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}/")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue