Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add delay to bucket tests to reduce rate limiting errors #2043

Merged
merged 1 commit into from Aug 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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