Skip to content

Commit

Permalink
test: add 1s delay to bucket sample tests to avoid getting throttle e… (
Browse files Browse the repository at this point in the history
#2459)

* test: add 1s delay to bucket sample tests to avoid getting throttle errors

* add duplexify types to dev deps
  • Loading branch information
ddelgrosso1 authored May 8, 2024
1 parent dad4dda commit 74461e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"@grpc/grpc-js": "^1.0.3",
"@grpc/proto-loader": "^0.7.0",
"@types/async-retry": "^1.4.3",
"@types/duplexify": "^3.6.4",
"@types/mime": "^3.0.0",
"@types/mocha": "^9.1.1",
"@types/mockery": "^1.4.29",
Expand Down
3 changes: 3 additions & 0 deletions samples/system-test/buckets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ async function deleteAllBucketsAsync() {
}

after(deleteAllBucketsAsync);
afterEach(async () => {
await new Promise(res => setTimeout(res, 1000));
});

it('should create a bucket', async () => {
const output = execSync(`node createNewBucket.js ${bucketName}`);
Expand Down

0 comments on commit 74461e4

Please sign in to comment.