Skip to content

Commit 28d23b5

Browse files
authored
test: extend timeout for flaky tests (#567)
1 parent 8fc256d commit 28d23b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/google-cloud-asset/samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"repository": "googleapis/nodejs-asset",
1313
"private": true,
1414
"scripts": {
15-
"test": "mocha --timeout 180000"
15+
"test": "mocha --timeout 360000"
1616
},
1717
"dependencies": {
1818
"@google-cloud/asset": "^3.19.0",

packages/google-cloud-asset/samples/test/sample.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('quickstart sample tests', () => {
6464
it('should export assets to specified path', async () => {
6565
const dumpFilePath = `gs://${bucketName}/my-assets-${fileSuffix}.txt`;
6666
execSync(`node exportAssets ${dumpFilePath}`);
67-
let waitMs = 1000;
67+
let waitMs = 4000;
6868
let exists = false;
6969
let file;
7070
for (let retry = 0; retry < 3 && !exists; ++retry) {
@@ -80,7 +80,7 @@ describe('quickstart sample tests', () => {
8080
const dumpFilePath = `gs://${bucketName}/my-relationships-${fileSuffix}.txt`;
8181
const contentType = 'RELATIONSHIP';
8282
execSync(`node exportAssets ${dumpFilePath} ${contentType}`);
83-
let waitMs = 1000;
83+
let waitMs = 4000;
8484
let exists = false;
8585
let file;
8686
for (let retry = 0; retry < 3 && !exists; ++retry) {
@@ -162,7 +162,7 @@ describe('quickstart sample tests', () => {
162162
execSync(
163163
`node analyzeIamPolicyLongrunningBigquery ${datasetId} ${tablePrefix}`
164164
);
165-
let waitMs = 1000;
165+
let waitMs = 4000;
166166
let metadataTable;
167167
let metadataTable_exists = false;
168168
let resultsTable;

0 commit comments

Comments
 (0)