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_unit("convos")
|
||||||
machine.wait_for_open_port("${toString port}")
|
machine.wait_for_open_port("${toString port}")
|
||||||
machine.succeed("journalctl -u convos | grep -q 'Listening at.*${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…
x
Reference in New Issue
Block a user