Skip to content

Commit

Permalink
fix docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
udsamani committed Oct 9, 2024
1 parent c1ec5c0 commit ba4ebd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/bin/bacalhau.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/hello-world-docker-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ba4ebd6

Please sign in to comment.