Skip to content

Commit

Permalink
test: add delay to bucket tests to reduce rate limiting errors (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed Aug 16, 2022
1 parent 2615026 commit e58ee0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system-test/storage.ts
Expand Up @@ -73,7 +73,6 @@ describe('storage', () => {
const storage = new Storage({
retryOptions: {
idempotencyStrategy: IdempotencyStrategy.RetryAlways,
retryDelayMultiplier: 3,
},
});
const bucket = storage.bucket(generateName());
Expand Down Expand Up @@ -225,6 +224,12 @@ describe('storage', () => {

describe('acls', () => {
describe('buckets', () => {
// Some bucket update operations have a rate limit.
// Introduce a delay between tests to avoid getting an error.
beforeEach(done => {
setTimeout(done, 1000);
});

it('should get access controls', async () => {
const accessControls = await bucket.acl.get();
assert(Array.isArray(accessControls));
Expand Down

0 comments on commit e58ee0b

Please sign in to comment.