Skip to content

Commit e0fcf78

Browse files
committed
Fix CI
1 parent 0a24c44 commit e0fcf78

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/retry.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,8 @@ test('totalTimeout bounds hanging HTTPError body reads when timeout is larger',
17511751
},
17521752
);
17531753

1754-
t.is(requestCount, 1);
1754+
// `totalTimeout` starts when the Ky pipeline is created, so very slow CI can exhaust the budget before the first fetch attempt begins.
1755+
t.true(requestCount >= 0 && requestCount <= 1);
17551756
});
17561757

17571758
test('totalTimeout bounds hanging HTTPError parseJson when timeout is disabled', async t => {
@@ -1784,7 +1785,8 @@ test('totalTimeout bounds hanging HTTPError parseJson when timeout is disabled',
17841785
},
17851786
);
17861787

1787-
t.is(requestCount, 1);
1788+
// `totalTimeout` starts when the Ky pipeline is created, so very slow CI can exhaust the budget before the first fetch attempt begins.
1789+
t.true(requestCount >= 0 && requestCount <= 1);
17881790
});
17891791

17901792
test('totalTimeout smaller than timeout - effective timeout is capped', async t => {

0 commit comments

Comments
 (0)