Skip to content

Commit

Permalink
fix: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao committed Jul 15, 2024
1 parent 76c19b9 commit b5dc801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ await mockEsmWithActual('#src/utils/tenant.js', () => ({
}));

await mockEsmWithActual('p-retry', () => ({
// Mock pRetry but disable the default "exponential backoff"
// Stub pRetry by overriding the default "exponential backoff",
// in order to make the test run faster.
default: async (input: <T>(retries: number) => T | PromiseLike<T>) =>
pRetry(input, { factor: 0 }),
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ export default function customUiAssetsRoutes<T extends ManagementApiRouter>(

await pRetry(hasUnzipCompleted, {
retries: maxRetryCount,
onFailedAttempt: (error) => {
if (error instanceof AbortError) {
throw error;
}
},
});
} catch (error: unknown) {
getConsoleLogFromContext(ctx).error(error);
Expand Down

0 comments on commit b5dc801

Please sign in to comment.