Skip to content

Commit

Permalink
On overloaded CI 10 seconds just isn't enough (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi authored Jul 23, 2021
1 parent f15eef9 commit aa86bc2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions retrievalmarket/impl/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit aa86bc2

Please sign in to comment.