From 2dbd2ce4fd779d5e0eb402d535cbea686c76229a Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Fri, 15 Sep 2023 17:29:00 +1000 Subject: [PATCH] fix: extend timeout for slow CI --- pkg/retriever/httpretriever_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/retriever/httpretriever_test.go b/pkg/retriever/httpretriever_test.go index b52a5464..4975b689 100644 --- a/pkg/retriever/httpretriever_test.go +++ b/pkg/retriever/httpretriever_test.go @@ -864,7 +864,7 @@ func TestHTTPRetriever(t *testing.T) { t.Parallel() req := require.New(t) - ctx, cancel := context.WithTimeout(ctx, 5*time.Second) + ctx, cancel := context.WithTimeout(ctx, 10*time.Second) defer cancel() clock := clock.NewMock() @@ -884,7 +884,7 @@ func TestHTTPRetriever(t *testing.T) { mockSession := testutil.NewMockSession(ctx) mockSession.SetCandidatePreferenceOrder(append(cid1Cands, cid2Cands...)) - mockSession.SetProviderTimeout(5 * time.Second) + mockSession.SetProviderTimeout(10 * time.Second) retriever := retriever.NewHttpRetrieverWithDeps(mockSession, client, clock, nil, initialPause, true) blockAccounting := make([]*blockAccounter, 0)