Skip to content

Commit

Permalink
ci: add a bit more test time for slow ci machine
Browse files Browse the repository at this point in the history
Signed-off-by: Sander Pick <[email protected]>
  • Loading branch information
sanderpick committed Mar 28, 2021
1 parent a9646df commit 86af1a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gateway/pinning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion pinning/queue/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 86af1a7

Please sign in to comment.