Skip to content

Commit

Permalink
test: extend timeout for flaky tests (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Oct 13, 2021
1 parent 1ae872f commit 657ab9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion asset/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"repository": "googleapis/nodejs-asset",
"private": true,
"scripts": {
"test": "mocha --timeout 180000"
"test": "mocha --timeout 360000"
},
"dependencies": {
"@google-cloud/asset": "^3.19.0",
Expand Down
6 changes: 3 additions & 3 deletions asset/snippets/test/sample.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('quickstart sample tests', () => {
it('should export assets to specified path', async () => {
const dumpFilePath = `gs://${bucketName}/my-assets-${fileSuffix}.txt`;
execSync(`node exportAssets ${dumpFilePath}`);
let waitMs = 1000;
let waitMs = 4000;
let exists = false;
let file;
for (let retry = 0; retry < 3 && !exists; ++retry) {
Expand All @@ -80,7 +80,7 @@ describe('quickstart sample tests', () => {
const dumpFilePath = `gs://${bucketName}/my-relationships-${fileSuffix}.txt`;
const contentType = 'RELATIONSHIP';
execSync(`node exportAssets ${dumpFilePath} ${contentType}`);
let waitMs = 1000;
let waitMs = 4000;
let exists = false;
let file;
for (let retry = 0; retry < 3 && !exists; ++retry) {
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('quickstart sample tests', () => {
execSync(
`node analyzeIamPolicyLongrunningBigquery ${datasetId} ${tablePrefix}`
);
let waitMs = 1000;
let waitMs = 4000;
let metadataTable;
let metadataTable_exists = false;
let resultsTable;
Expand Down

0 comments on commit 657ab9d

Please sign in to comment.