From aa86bc232d6cf7f687905883686672462e4b8d9d Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Sat, 24 Jul 2021 00:30:47 +0200 Subject: [PATCH] On overloaded CI 10 seconds just isn't enough (#587) --- retrievalmarket/impl/integration_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/retrievalmarket/impl/integration_test.go b/retrievalmarket/impl/integration_test.go index 3a2fe90f..6c5ad795 100644 --- a/retrievalmarket/impl/integration_test.go +++ b/retrievalmarket/impl/integration_test.go @@ -424,7 +424,7 @@ func TestClientCanMakeDealWithProvider(t *testing.T) { } // ------- SET UP CLIENT - ctx, cancel := context.WithTimeout(bgCtx, 10*time.Second) + ctx, cancel := context.WithTimeout(bgCtx, 60*time.Second) defer cancel() provider := setupProvider(bgCtx, t, testData, payloadCID, pieceInfo, expectedQR, @@ -550,11 +550,12 @@ CurrentInterval: %d } assert.Equal(t, retrievalmarket.DealStatusCompleted, clientDealState.Status) } - ctx, cancel = context.WithTimeout(bgCtx, 5*time.Second) - defer cancel() + + ctxProv, cancelProv := context.WithTimeout(bgCtx, 10*time.Second) + defer cancelProv() var providerDealState retrievalmarket.ProviderDealState select { - case <-ctx.Done(): + case <-ctxProv.Done(): t.Error("provider never saw completed deal") t.FailNow() case providerDealState = <-providerDealStateChan: