forked from mirrors/nixpkgs
nixos/tests/osrm-backend: Use curl --fail
This commit is contained in:
parent
1332215d59
commit
22f52cdb79
|
@ -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"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue