From c572830951edc197438dcfea0b23cfc1e1e49247 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 17 Nov 2024 02:03:40 -0500 Subject: [PATCH] spelling: retryable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- __tests__/ghcr-client.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/__tests__/ghcr-client.test.ts b/__tests__/ghcr-client.test.ts index 7696008..a9d01ec 100644 --- a/__tests__/ghcr-client.test.ts +++ b/__tests__/ghcr-client.test.ts @@ -171,7 +171,7 @@ function configureFetchMock( putManifest: 0 } ): void { - const retriableError = async (retries: number): Promise => { + const retryableError = async (retries: number): Promise => { if (retries % 2 === 0) { throw new Error('Network Error') } else { @@ -198,14 +198,14 @@ function configureFetchMock( case 'HEAD': if (forcedRetries.checkBlob > 0) { forcedRetries.checkBlob-- - return retriableError(forcedRetries.checkBlob) + return retryableError(forcedRetries.checkBlob) } return methodHandlers.checkBlobMock?.(url, options) case 'POST': if (forcedRetries.initiateBlobUpload > 0) { forcedRetries.initiateBlobUpload-- - return retriableError(forcedRetries.initiateBlobUpload) + return retryableError(forcedRetries.initiateBlobUpload) } return methodHandlers.initiateBlobUploadMock?.(url, options) @@ -213,14 +213,14 @@ function configureFetchMock( if (url.includes('manifest')) { if (forcedRetries.putManifest > 0) { forcedRetries.putManifest-- - return retriableError(forcedRetries.putManifest) + return retryableError(forcedRetries.putManifest) } return methodHandlers.putManifestMock?.(url, options) } else { if (forcedRetries.putBlob > 0) { forcedRetries.putBlob-- - return retriableError(forcedRetries.putBlob) + return retryableError(forcedRetries.putBlob) } return methodHandlers.putBlobMock?.(url, options)