From ba4ebd6197a89e77c2ce0ead2dafb801fe722c81 Mon Sep 17 00:00:00 2001 From: udsamani Date: Wed, 9 Oct 2024 08:27:38 +0100 Subject: [PATCH] fix docker test --- test/bin/bacalhau.sh | 6 +++--- test/hello-world-docker-v2.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/bin/bacalhau.sh b/test/bin/bacalhau.sh index c54dec7116..c9701b5e87 100644 --- a/test/bin/bacalhau.sh +++ b/test/bin/bacalhau.sh @@ -34,8 +34,8 @@ create_node() { { while ! ls $BACALHAU_DIR/bacalhau.run 2>/dev/null; do if ! ps $NODE_PID; then - echo "$BACALHAU serve --node-type=$TYPE $@ failed to start?" 1>&2; - echo `$BACALHAU serve --node-type=$TYPE $@` 1>&2 + echo "$BACALHAU serve --"$TYPE" $@ failed to start?" 1>&2; + echo `$BACALHAU serve --"$TYPE" $@` 1>&2 exit 1 fi sleep 0.01 @@ -44,7 +44,7 @@ create_node() { # Ensure subsequent nodes automatically connect to this requester, and pick # a random port for the HTTP API to avoid collisions - if [[ "$TYPE" =~ "requester" ]]; then + if [[ "$TYPE" =~ "orchestrator" ]]; then source $BACALHAU_DIR/bacalhau.run export BACALHAU_NODE_SERVERAPI_PORT=0 fi diff --git a/test/hello-world-docker-v2.sh b/test/hello-world-docker-v2.sh index c689021f02..ea56374d48 100644 --- a/test/hello-world-docker-v2.sh +++ b/test/hello-world-docker-v2.sh @@ -5,9 +5,9 @@ source bin/bacalhau.sh testcase_can_run_docker_hello_world() { # Assuming create_node is a function that takes two arguments separated by comma, not space create_node requester,compute + create_node orchestrator,compute subject ${BACALHAU} job run --follow $ROOT/testdata/jobs/docker-hello.yaml assert_equal 0 $status assert_match "Hello Bacalhau!" $(echo $stdout) - assert_equal '' $stderr }