Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(retry): allow respecting Retry-After for user-defined status codes #598

Prev Previous commit
Next Next commit
chore: remove debug code
How embarassing.
  • Loading branch information
Kenneth-Sills committed Jul 3, 2024
commit e380319ac06253088fcbcf90b81fd1d65dafa518
1 change: 0 additions & 1 deletion test/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ test('respect custom `afterStatusCodes` (500) with Retry-After header', async t
});

const result = await ky(server.url, {retry: {afterStatusCodes: [500]}}).text();
console.log(result);
t.true(Number(result) >= retryAfterOn500 * 1000);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing an assertion for the requestCount.

Looks like some of the other retry tests also have this mistake.

await server.close();
Expand Down