From ef06a686f1941600fddc7b1dc9b76b62a85e23ed Mon Sep 17 00:00:00 2001 From: DPE bot Date: Fri, 21 Sep 2018 17:37:56 -0700 Subject: [PATCH] Update the CI config (#206) --- packages/google-cloud-vision/.circleci/npm-install-retry.js | 2 +- .../smoke-test/image_annotator_smoke_test.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-vision/.circleci/npm-install-retry.js b/packages/google-cloud-vision/.circleci/npm-install-retry.js index ae3220d7348..3240aa2cbf2 100755 --- a/packages/google-cloud-vision/.circleci/npm-install-retry.js +++ b/packages/google-cloud-vision/.circleci/npm-install-retry.js @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn; //USE: ./index.js [... NPM ARGS] // -let timeout = process.argv[2] || 60000; +let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000; let attempts = process.argv[3] || 3; let args = process.argv.slice(4); if (args.length === 0) { diff --git a/packages/google-cloud-vision/smoke-test/image_annotator_smoke_test.js b/packages/google-cloud-vision/smoke-test/image_annotator_smoke_test.js index 131d2f65a8c..5b5ae522c67 100644 --- a/packages/google-cloud-vision/smoke-test/image_annotator_smoke_test.js +++ b/packages/google-cloud-vision/smoke-test/image_annotator_smoke_test.js @@ -39,8 +39,7 @@ describe('ImageAnnotatorSmokeTest', () => { features: features, }; const requests = [requestsElement]; - client - .batchAnnotateImages({requests: requests}) + client.batchAnnotateImages({requests: requests}) .then(responses => { const response = responses[0]; console.log(response);