Skip to content

Commit

Permalink
fix(integration tests): attempt to fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Jun 15, 2021
1 parent 7e7cd8d commit 56af71f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration_tests/01_storage_retrieval_ok.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ source "$my_dir/header.sh"

export DEALBOT_MINER_ADDRESS=t01000

dealbot storage-deal
dealbot storage-deal | tee dealbot.log

returnValue=$?
if [[ $returnValue -ne 0 ]]; then
echo "expected storage-deal to succeed, but it returned exit code != 0"
exit 1
fi

CID=$(lotus client local | tail -1 | awk '{print $2}')
CID=$(cat dealbot.log | grep datacid | sed 's/.*datacid": "//' | sed 's/"}//')

dealbot retrieval-deal --cid=$CID

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/02_controller_daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if ! grep -q 'INFO.*controller.*storage task.*"miner": "t01000",.*"size": 1024,.
exit 1
fi

CID=$(lotus client local | tail -1 | awk '{print $2}')
CID=$(cat dealbot-daemon.log | grep datacid | sed 's/.*datacid": "//' | sed 's/"}//')

# Also queue a retrieval task of the data we just stored.
curl --header "Content-Type: application/json" \
Expand Down

0 comments on commit 56af71f

Please sign in to comment.