diff --git a/packages/google-cloud-speech/.circleci/npm-install-retry.js b/packages/google-cloud-speech/.circleci/npm-install-retry.js index ae3220d7348..3240aa2cbf2 100755 --- a/packages/google-cloud-speech/.circleci/npm-install-retry.js +++ b/packages/google-cloud-speech/.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-speech/smoke-test/speech_smoke_test.js b/packages/google-cloud-speech/smoke-test/speech_smoke_test.js index 756f84f1a2e..1cbcef2d9ab 100644 --- a/packages/google-cloud-speech/smoke-test/speech_smoke_test.js +++ b/packages/google-cloud-speech/smoke-test/speech_smoke_test.js @@ -38,8 +38,7 @@ describe('SpeechSmokeTest', () => { config: config, audio: audio, }; - client - .recognize(request) + client.recognize(request) .then(responses => { const response = responses[0]; console.log(response);