@cryptotaxi247 / kubo / commits / 9d8d2748b

fix(ci): flaky sharness test

Marcin Rataj committed Jan 5, 2023 at 00:08 UTC 9d8d2748b1adbf5613050c364b51739ae45c7067
1 file changed +3 -1
test/sharness/t0172-content-routing-over-http.sh
+3 -1
@@ -21,6 +21,7 @@ test_launch_ipfs_daemon
21 test_expect_success "start HTTP router proxy" '
22 socat TCP-LISTEN:$ROUTER_PORT,reuseaddr,fork,bind=127.0.0.1 STDOUT > http_requests &
23 NCPID=$!
24 + test_wait_for_file 50 100ms http_requests
25 '
26
27 ## HTTP GETs
@@ -30,7 +31,8 @@ test_expect_success 'create unique CID without adding it to the local datastore'
31 '
32
33 test_expect_success 'expect HTTP request for unknown CID' '
33 - ipfs routing findprovs --timeout 3s "$WANT_CID" &&
34 + ipfs block stat "$WANT_CID" &
35 + test_wait_output_n_lines_60_sec http_requests 3 &&
36 test_should_contain "GET /routing/v1/providers/$WANT_CID" http_requests
37 '
38