Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
sharness/lib/test-lib: use go-poll-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscool committed Oct 2, 2017
1 parent 045d6c8 commit 5913314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,13 @@ test_launch_ipfs_daemon() {

test_set_address_vars actual_daemon

echo "IPFS_PATH: '$IPFS_PATH'"
echo "API_MADDR: '$API_MADDR'"

# we say the daemon is ready when the API server is ready.
test_expect_success "'ipfs daemon' is ready" '
IPFS_PID=$! &&
pollEndpoint -ep=/version -host=$API_MADDR -v -tout=1s -tries=60 2>poll_apierr > poll_apiout ||
go-poll-endpoint -ep=/version -host=$API_MADDR -v -tout=1s -tries=60 2>poll_apierr > poll_apiout ||
test_fsh cat actual_daemon || test_fsh cat daemon_err || test_fsh cat poll_apierr || test_fsh cat poll_apiout
'
}
Expand Down

0 comments on commit 5913314

Please sign in to comment.