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

Commit f395485

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

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

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",

samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"requestretry": "^7.0.0"
2828
},
2929
"scripts": {
30-
"test": "mocha --timeout=600000",
30+
"test": "mocha --timeout=600000 --retries 3",
3131
"test:snap": "SNAPSHOT_UPDATE=1 npm test"
3232
}
3333
}

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)