Skip to content

Commit

Permalink
chore(storage): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Jul 15, 2024
1 parent a3e495f commit 0d359fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { ErrorParser, HttpResponse } from '../../types';

import { isClockSkewError } from './isClockSkewError';
import { isInvalidCredentialsError } from './isInvalidCredentialsError';

export interface RetryDeciderOutput {
retryable: boolean;
isInvalidCredentialsError: boolean;
}
import { RetryDeciderOutput } from './types';

/**
* Get retry decider function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ const completeMultipartUploadErrorWith200CodeCase: ApiFunctionalTestCase<
'error case',
'completeMultipartUpload with 200 status',
completeMultipartUpload,
{ ...defaultConfig, retryDecider: async () => false }, // disable retry
{
...defaultConfig,
retryDecider: async () => ({
retryable: false,
}),
}, // disable retry
completeMultipartUploadHappyCase[4],
completeMultipartUploadHappyCase[5],
{
Expand Down

0 comments on commit 0d359fc

Please sign in to comment.