Merge pull request #4402 from backstage/rugvip/intfix

backend-common: ignore rate limiting errors in UrlReader integration tests
This commit is contained in:
Patrik Oldsberg
2021-02-05 15:39:03 +01:00
committed by GitHub
@@ -71,7 +71,11 @@ function withRetries(count: number, fn: () => Promise<void>) {
error = err;
}
}
throw error;
if (!error.message.match(/rate limit|Too Many Requests/)) {
throw error;
} else {
console.warn('Request was rate limited', error);
}
};
}