Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit e58ee0b

Browse files
authored
test: add delay to bucket tests to reduce rate limiting errors (#2043)
1 parent 2615026 commit e58ee0b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

system-test/storage.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ describe('storage', () => {
7373
const storage = new Storage({
7474
retryOptions: {
7575
idempotencyStrategy: IdempotencyStrategy.RetryAlways,
76-
retryDelayMultiplier: 3,
7776
},
7877
});
7978
const bucket = storage.bucket(generateName());
@@ -225,6 +224,12 @@ describe('storage', () => {
225224

226225
describe('acls', () => {
227226
describe('buckets', () => {
227+
// Some bucket update operations have a rate limit.
228+
// Introduce a delay between tests to avoid getting an error.
229+
beforeEach(done => {
230+
setTimeout(done, 1000);
231+
});
232+
228233
it('should get access controls', async () => {
229234
const accessControls = await bucket.acl.get();
230235
assert(Array.isArray(accessControls));

0 commit comments

Comments
 (0)