Skip to content

Commit

Permalink
test: increase timeout of delay in hmac get test (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed May 15, 2024
1 parent 918db28 commit f2e1e0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions system-test/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3078,9 +3078,8 @@ describe('storage', function () {

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

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

0 comments on commit f2e1e0c

Please sign in to comment.