Skip to content

Commit

Permalink
chore: fixes the flaky tests (#486)
Browse files Browse the repository at this point in the history

Fixes #483 #479 #480  🦕
  • Loading branch information
munkhuushmgl authored and ahrarmonsur committed Nov 17, 2022
1 parent 4c7c839 commit c54faf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
const cmd = 'node analyze-streaming-shot-change.js';
const file = 'resources/googlework_short.mp4';

describe('streaming shot change', () => {
describe('streaming shot change', function () {
this.retries(3);
it('should analyze shot changes in a streaming video', async () => {
const output = execSync(`${cmd} ${file}`);
assert.match(output, /The entire video is one shot./);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const file = 'resources/googlework_short.mp4';
describe('analyzing faces in video', () => {
it('should identify faces in a local file', async () => {
const output = execSync(`${cmd} ${file}`);
assert.match(output, /Attribute/);
assert.match(output, /Face detected:/);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ const gcsUri = 'gs://cloud-samples-data/video/googlework_short.mp4';
describe('analyzing faces in video', () => {
it('should identify faces in a file in Google Storage', async () => {
const output = execSync(`${cmd} ${gcsUri}`);
assert.match(output, /Attribute/);
assert.match(output, /Face detected:/);
});
});

0 comments on commit c54faf8

Please sign in to comment.