Skip to content

Commit 0cefcb0

Browse files
Ace NassriAhrar Monsur
authored andcommitted
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 b7259c8. * Update dependency
1 parent 576cd58 commit 0cefcb0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

video-intelligence/system-test/analyze.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,25 @@
1818
'use strict';
1919

2020
require(`../../system-test/_setup`);
21+
const path = require(`path`);
2122

2223
const cmd = `node analyze.js`;
24+
const cwd = path.join(__dirname, `..`);
2325

2426
// analyze_faces
2527
test(`should analyze faces`, async (t) => {
26-
const output = await runAsync(`${cmd} faces gs://nodejs-docs-samples/video/google_gmail.mp4`);
28+
const output = await runAsync(`${cmd} faces gs://nodejs-docs-samples/video/google_gmail.mp4`, cwd);
2729
t.regex(output, /Thumbnail size: \d+/);
2830
});
2931

3032
// analyze_labels
3133
test(`should analyze labels`, async (t) => {
32-
const output = await runAsync(`${cmd} labels gs://nodejs-docs-samples/video/cat.mp4`);
34+
const output = await runAsync(`${cmd} labels gs://nodejs-docs-samples/video/cat.mp4`, cwd);
3335
t.regex(output, /Label description: Whiskers/);
3436
});
3537

3638
// analyze_shots
3739
test(`should analyze shots`, async (t) => {
38-
const output = await runAsync(`${cmd} shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4`);
40+
const output = await runAsync(`${cmd} shots gs://nodejs-docs-samples/video/gbike_dinosaur.mp4`, cwd);
3941
t.regex(output, /Scene 0:/);
4042
});

0 commit comments

Comments
 (0)