Skip to content

Commit fc69be4

Browse files
authored
test: increase timeout of delay in hmac get test (#2457)
1 parent 4b8e367 commit fc69be4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

handwritten/storage/system-test/storage.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,9 +3078,8 @@ describe('storage', function () {
30783078

30793079
const delay = async (test: Mocha.Context, accessId: string) => {
30803080
const retries = test.currentRetry();
3081-
if (retries === 0) return; // no retry on the first failure.
30823081
// see: https://cloud.google.com/storage/docs/exponential-backoff:
3083-
const ms = Math.pow(2, retries) * 500 + Math.random() * 1000;
3082+
const ms = Math.pow(2, retries) * 1000 + Math.random() * 1000;
30843083
return new Promise(done => {
30853084
console.info(
30863085
`retrying "${test.title}" with accessId ${accessId} in ${ms}ms`
@@ -3114,7 +3113,6 @@ describe('storage', function () {
31143113
});
31153114

31163115
it('should get metadata for an HMAC key', async function () {
3117-
this.retries(3);
31183116
delay(this, accessId);
31193117
const hmacKey = storage.hmacKey(accessId, {projectId: HMAC_PROJECT});
31203118
const [metadata] = await hmacKey.getMetadata();

0 commit comments

Comments
 (0)