Skip to content

Commit a0dd9e2

Browse files
feywindGautamSharda
authored andcommitted
tests: add retries and some delays to try to clear up some CI issues around quotas and timeouts (#1759)
1 parent c4288bf commit a0dd9e2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

handwritten/bigtable/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"lint": "gts check",
3737
"prepare": "npm run compile-protos && npm run compile",
3838
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
39-
"snippet-test": "mocha samples/api-reference-doc-snippets/tests/*.js --timeout 600000",
39+
"snippet-test": "mocha samples/api-reference-doc-snippets/tests/*.js --timeout 600000 --retries 3",
4040
"presystem-test": "npm run compile",
41-
"system-test": "mocha build/system-test --timeout 600000",
41+
"system-test": "mocha build/system-test --timeout 600000 --retries 3",
4242
"pretest": "npm run compile",
4343
"test": "c8 mocha build/test",
4444
"test:snap": "SNAPSHOT_UPDATE=1 npm test",

handwritten/bigtable/system-test/bigtable.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,11 @@ describe('Bigtable', () => {
19041904
nanos: 0,
19051905
};
19061906

1907+
beforeEach(async () => {
1908+
// This is not ideal, but we are running into quota issues for admin API access.
1909+
await new Promise(r => setTimeout(r, 60 * 1000));
1910+
});
1911+
19071912
before(async () => {
19081913
const [backupOpSSD] = await tableAdmin.createBackup({
19091914
parent: replaceProjectIdToken(

0 commit comments

Comments
 (0)