nixos/tests/hound: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 07:54:06 -07:00 committed by Frederik Rietdijk
parent bc4f47c19a
commit bbd1f02b16

View file

@ -53,7 +53,7 @@ import ./make-test-python.nix ({ pkgs, ... } : {
machine.wait_for_unit("hound.service") machine.wait_for_unit("hound.service")
machine.wait_for_open_port(6080) machine.wait_for_open_port(6080)
machine.wait_until_succeeds( machine.wait_until_succeeds(
"curl http://127.0.0.1:6080/api/v1/search\?stats\=fosho\&repos\=\*\&rng=%3A20\&q\=hi\&files\=\&i=nope | grep 'Filename' | grep 'hello'" "curl -f http://127.0.0.1:6080/api/v1/search\?stats\=fosho\&repos\=\*\&rng=%3A20\&q\=hi\&files\=\&i=nope | grep 'Filename' | grep 'hello'"
) )
''; '';
}) })