nixos/tests/go-neb: Use curl --fail

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

View File

@ -34,7 +34,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
start_all()
server.wait_for_unit("go-neb.service")
server.wait_until_succeeds(
"curl -L http://localhost:4050/services/hooks/d2lraXBlZGlhX3NlcnZpY2U"
"curl -fL http://localhost:4050/services/hooks/d2lraXBlZGlhX3NlcnZpY2U"
)
server.wait_until_succeeds(
"journalctl -eu go-neb -o cat | grep -q service_id=wikipedia_service"