From cbb8b813602de09e3e48870cd8c0230442c2355a Mon Sep 17 00:00:00 2001 From: Ace Nassri Date: Wed, 5 Apr 2017 15:57:12 -0500 Subject: [PATCH] Travis: fix failing tests + update dependencies (#335) * Make unify script recursive + clean up dependency conflicts * Restore travis.yml * Delete outdated text detection sample that duplicates detect.js * Fix failing KMS + vision tests by updating dependencies * Fix video tests using a bad cwd * Upgrade monitoring dependency + skip flaky monitoring tests * Fix DLP tests having wrong cwd * Fix failing vision test * Fix datastore tests * Update broken dependency * Update possibly broken compute engine dependency * Fix typos * Disable Node 4 testing * Revert deletion of outdated sample - @gguuss says we still use this. This reverts commit b7259c820fb011369c7b5badac82fcde26be008a. * Update dependency --- video-intelligence/system-test/analyze.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/video-intelligence/system-test/analyze.test.js b/video-intelligence/system-test/analyze.test.js index 1e48c54aed..a036efcef3 100644 --- a/video-intelligence/system-test/analyze.test.js +++ b/video-intelligence/system-test/analyze.test.js @@ -18,23 +18,25 @@ 'use strict'; require(`../../system-test/_setup`); +const path = require(`path`); const cmd = `node analyze.js`; +const cwd = path.join(__dirname, `..`); // analyze_faces test(`should analyze faces`, async (t) => { - const output = await runAsync(`${cmd} faces gs://nodejs-docs-samples/video/google_gmail.mp4`); + const output = await runAsync(`${cmd} faces gs://nodejs-docs-samples/video/google_gmail.mp4`, cwd); t.regex(output, /Thumbnail size: \d+/); }); // analyze_labels test(`should analyze labels`, async (t) => { - const output = await runAsync(`${cmd} labels gs://nodejs-docs-samples/video/cat.mp4`); + const output = await runAsync(`${cmd} labels gs://nodejs-docs-samples/video/cat.mp4`, cwd); t.regex(output, /Label description: Whiskers/); }); // analyze_shots test(`should analyze shots`, async (t) => { - const output = await runAsync(`${cmd} shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4`); + const output = await runAsync(`${cmd} shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4`, cwd); t.regex(output, /Scene 0:/); });