3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/osrm-backend: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 08:47:12 -07:00 committed by Frederik Rietdijk
parent 1332215d59
commit 22f52cdb79

View file

@ -48,10 +48,10 @@ in {
machine.wait_for_unit("osrm.service") machine.wait_for_unit("osrm.service")
machine.wait_for_open_port(${toString port}) machine.wait_for_open_port(${toString port})
assert "Boulevard Rainier III" in machine.succeed( assert "Boulevard Rainier III" in machine.succeed(
"curl --silent '${query}' | jq .waypoints[0].name" "curl --fail --silent '${query}' | jq .waypoints[0].name"
) )
assert "Avenue de la Costa" in machine.succeed( assert "Avenue de la Costa" in machine.succeed(
"curl --silent '${query}' | jq .waypoints[1].name" "curl --fail --silent '${query}' | jq .waypoints[1].name"
) )
''; '';
}) })