nixos/tests/hadoop: Use curl --fail

This commit is contained in:
Scott Worley 2020-09-16 10:01:10 -07:00 committed by Frederik Rietdijk
parent c25ccf6b4b
commit f99b6369b1
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ import ../make-test-python.nix ({...}: {
datanode.wait_for_open_port(9866)
datanode.wait_for_open_port(9867)
namenode.succeed("curl http://namenode:9870")
datanode.succeed("curl http://datanode:9864")
namenode.succeed("curl -f http://namenode:9870")
datanode.succeed("curl -f http://datanode:9864")
'';
})

View File

@ -40,7 +40,7 @@ import ../make-test-python.nix ({...}: {
nodemanager.wait_for_open_port(8042)
nodemanager.wait_for_open_port(8041)
resourcemanager.succeed("curl http://localhost:8088")
nodemanager.succeed("curl http://localhost:8042")
resourcemanager.succeed("curl -f http://localhost:8088")
nodemanager.succeed("curl -f http://localhost:8042")
'';
})