From 9d8d2748b1adbf5613050c364b51739ae45c7067 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 5 Jan 2023 00:08:05 +0100 Subject: [PATCH] fix(ci): flaky sharness test --- test/sharness/t0172-content-routing-over-http.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sharness/t0172-content-routing-over-http.sh b/test/sharness/t0172-content-routing-over-http.sh index bc35c632812..d7028071f71 100755 --- a/test/sharness/t0172-content-routing-over-http.sh +++ b/test/sharness/t0172-content-routing-over-http.sh @@ -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 @@ -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 '