Skip to content

Commit c54faf8

Browse files
munkhuushmglAhrar Monsur
authored andcommitted
chore: fixes the flaky tests (#486)
Fixes #483 #479 #480 🦕
1 parent 4c7c839 commit c54faf8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

video-intelligence/system-test/analyze-streaming-shot-change.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
2323
const cmd = 'node analyze-streaming-shot-change.js';
2424
const file = 'resources/googlework_short.mp4';
2525

26-
describe('streaming shot change', () => {
26+
describe('streaming shot change', function () {
27+
this.retries(3);
2728
it('should analyze shot changes in a streaming video', async () => {
2829
const output = execSync(`${cmd} ${file}`);
2930
assert.match(output, /The entire video is one shot./);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ const file = 'resources/googlework_short.mp4';
2626
describe('analyzing faces in video', () => {
2727
it('should identify faces in a local file', async () => {
2828
const output = execSync(`${cmd} ${file}`);
29-
assert.match(output, /Attribute/);
29+
assert.match(output, /Face detected:/);
3030
});
3131
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ const gcsUri = 'gs://cloud-samples-data/video/googlework_short.mp4';
2626
describe('analyzing faces in video', () => {
2727
it('should identify faces in a file in Google Storage', async () => {
2828
const output = execSync(`${cmd} ${gcsUri}`);
29-
assert.match(output, /Attribute/);
29+
assert.match(output, /Face detected:/);
3030
});
3131
});

0 commit comments

Comments
 (0)