diff --git a/lib/platform/github/gh-got-wrapper.js b/lib/platform/github/gh-got-wrapper.js index 026a555f869b9c7cb95ef58fce2ef0c88f29fc96..f5b88771a35c9fa9e3619a0c17861a3be4d822aa 100644 --- a/lib/platform/github/gh-got-wrapper.js +++ b/lib/platform/github/gh-got-wrapper.js @@ -139,7 +139,7 @@ async function get(path, options, retries = 5) { }, 'Bad credentials' ); - if (rateLimit === 60) { + if (rateLimit === '60') { throw new Error('platform-failure'); } throw new Error('bad-credentials'); diff --git a/test/platform/github/gh-got-wrapper.spec.js b/test/platform/github/gh-got-wrapper.spec.js index 533333f957994209357e0dbad4256ab7909edef8..25aa3e10b7f6a6b7490991dfbf1f2698a48af101 100644 --- a/test/platform/github/gh-got-wrapper.spec.js +++ b/test/platform/github/gh-got-wrapper.spec.js @@ -96,7 +96,7 @@ describe('platform/gh-got-wrapper', () => { statusCode: 401, message: 'Bad credentials. (401)', headers: { - 'x-ratelimit-limit': 60, + 'x-ratelimit-limit': '60', }, }) );