Skip to content

Commit

Permalink
fix: extend test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Apr 6, 2023
1 parent 9a6b279 commit a21ee96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions impl/graphsync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ func TestGraphsyncRoundTripIgnoreNBlocks(t *testing.T) {

// create network
ctx, collectTracing := testutil.SetupTracing(context.Background())
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
ctx, cancel := context.WithTimeout(ctx, 3*time.Second)
defer cancel()
td := newGsTestData(ctx, t)

Expand Down Expand Up @@ -1049,7 +1049,7 @@ func TestNetworkDisconnect(t *testing.T) {
default:
}
})
requestCtx, requestCancel := context.WithTimeout(ctx, 1*time.Second)
requestCtx, requestCancel := context.WithTimeout(ctx, 3*time.Second)
defer requestCancel()
progressChan, errChan := requestor.Request(requestCtx, td.host2.ID(), blockChain.TipLink, blockChain.Selector(), td.extension)

Expand Down Expand Up @@ -1107,7 +1107,7 @@ func TestConnectFail(t *testing.T) {
blockChainLength := 100
blockChain := testutil.SetupBlockChain(ctx, t, td.persistence2, 100, blockChainLength)

requestCtx, requestCancel := context.WithTimeout(ctx, 1*time.Second)
requestCtx, requestCancel := context.WithTimeout(ctx, 3*time.Second)
defer requestCancel()

// unlink peers so they cannot communicate
Expand Down

0 comments on commit a21ee96

Please sign in to comment.