Skip to content

Commit

Permalink
chore: added retry logic for flaky tests (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhuushmgl authored and ahrarmonsur committed Nov 17, 2022
1 parent c54faf8 commit 1b891a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const modelId = 'VCN3094808572840640512';
const project = process.env.GCLOUD_PROJECT;
const file = 'resources/googlework_short.mp4';

describe('streaming automl classification', () => {
describe('streaming automl classification', function () {
this.retries(3);
it('should classify the action in the streaming video', async () => {
const output = execSync(`${cmd} ${file} ${project} ${modelId}`);
assert.match(output, /brush_hair/);
Expand Down
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-labels.js';
const file = 'resources/googlework_short.mp4';

describe('streaming label', () => {
describe('streaming label', function () {
this.retries(3);
it('should analyze labels in a streaming video', async () => {
const output = execSync(`${cmd} ${file}`);
assert.match(output, /cat/);
Expand Down

0 comments on commit 1b891a0

Please sign in to comment.