From 86af1a75f3b6da9581fefa503d753ec750bb4969 Mon Sep 17 00:00:00 2001 From: Sander Pick Date: Sun, 28 Mar 2021 15:15:38 -0700 Subject: [PATCH] ci: add a bit more test time for slow ci machine Signed-off-by: Sander Pick --- gateway/pinning_test.go | 4 ++-- pinning/queue/queue_test.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gateway/pinning_test.go b/gateway/pinning_test.go index 09fe599..003b128 100644 --- a/gateway/pinning_test.go +++ b/gateway/pinning_test.go @@ -100,7 +100,7 @@ func Test_ListPins(t *testing.T) { i := i j := i + (b * batchSize) f := files[j] - time.Sleep(time.Second) + time.Sleep(time.Second * 2) eg.Go(func() error { if gctx.Err() != nil { return nil @@ -115,7 +115,7 @@ func Test_ListPins(t *testing.T) { }(c, b) } - time.Sleep(time.Second * 25) // Allow time for requests to be added + time.Sleep(time.Minute) // Allow time for requests to be added // Test pagination for _, c := range clients { diff --git a/pinning/queue/queue_test.go b/pinning/queue/queue_test.go index 99099ac..fa89fe0 100644 --- a/pinning/queue/queue_test.go +++ b/pinning/queue/queue_test.go @@ -52,7 +52,8 @@ func TestQueue_ListRequests(t *testing.T) { key := newBucketkey(t) ids := make([]string, limit) for i := 0; i < limit; i++ { - now = now.Add(time.Second) // Pagination is not possible at sub second resolution due limits in the API spec + // Pagination is not possible at sub second resolution due limits in the API spec + now = now.Add(time.Second * 2) p := newParams(key, now, time.Millisecond, succeed) r, err := q.AddRequest(p) require.NoError(t, err)