Skip to content

Commit

Permalink
fix(ci): flaky sharness test
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jan 4, 2023
1 parent d386c43 commit 13155e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/sharness/t0172-content-routing-over-http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test_launch_ipfs_daemon
test_expect_success "start HTTP router proxy" '
socat TCP-LISTEN:$ROUTER_PORT,reuseaddr,fork,bind=127.0.0.1 STDOUT > http_requests &
NCPID=$!
test_wait_for_file 50 100ms http_requests
'

## HTTP GETs
Expand All @@ -30,7 +31,8 @@ test_expect_success 'create unique CID without adding it to the local datastore'
'

test_expect_success 'expect HTTP request for unknown CID' '
ipfs routing findprovs --timeout 3s "$WANT_CID" &&
ipfs block stat "$WANT_CID" &
test_wait_output_n_lines_60_sec http_requests 3 &&
test_should_contain "GET /routing/v1/providers/$WANT_CID" http_requests
'

Expand Down

0 comments on commit 13155e5

Please sign in to comment.