Skip to content

Commit 86af1a7

Browse files
committed
ci: add a bit more test time for slow ci machine
Signed-off-by: Sander Pick <sanderpick@gmail.com>
1 parent a9646df commit 86af1a7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gateway/pinning_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func Test_ListPins(t *testing.T) {
100100
i := i
101101
j := i + (b * batchSize)
102102
f := files[j]
103-
time.Sleep(time.Second)
103+
time.Sleep(time.Second * 2)
104104
eg.Go(func() error {
105105
if gctx.Err() != nil {
106106
return nil
@@ -115,7 +115,7 @@ func Test_ListPins(t *testing.T) {
115115
}(c, b)
116116
}
117117

118-
time.Sleep(time.Second * 25) // Allow time for requests to be added
118+
time.Sleep(time.Minute) // Allow time for requests to be added
119119

120120
// Test pagination
121121
for _, c := range clients {

pinning/queue/queue_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ func TestQueue_ListRequests(t *testing.T) {
5252
key := newBucketkey(t)
5353
ids := make([]string, limit)
5454
for i := 0; i < limit; i++ {
55-
now = now.Add(time.Second) // Pagination is not possible at sub second resolution due limits in the API spec
55+
// Pagination is not possible at sub second resolution due limits in the API spec
56+
now = now.Add(time.Second * 2)
5657
p := newParams(key, now, time.Millisecond, succeed)
5758
r, err := q.AddRequest(p)
5859
require.NoError(t, err)

0 commit comments

Comments
 (0)