Skip to content
Myr

Fix CI

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sindre Sorhus · committed by Sindre Sorhus · parent 0a24c44 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • tests:+4 added−2 removed

1 file+4 added−2 removed

modified:test/retry.ts+4 added-2 removed
1749 unmodified lines
1750 name: 'TimeoutError',1751 },1752 );17531754 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);1756});17571758test('totalTimeout bounds hanging HTTPError parseJson when timeout is disabled', async t => {1759 t.timeout(2000);
24 unmodified lines
1784 name: 'TimeoutError',1785 },1786 );17871787 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);1790});17911792test('totalTimeout smaller than timeout - effective timeout is capped', async t => {1793 let requestCount = 0;
437 unmodified lines