Skip to content

Commit

Permalink
test: Add retries to additional function in AutoML Tables Predict test (
Browse files Browse the repository at this point in the history
#564)

* Added retries to automlTablesPredict sample test

* Convert arrow functions

* Add retries to another function in predict test
  • Loading branch information
kweinmeister authored and Ace Nassri committed Nov 14, 2022
1 parent af8d9d4 commit 6c570d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion automl/test/automlTablesPredict.v1beta1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ const bqOutputUriPrefix = `bq://${projectId}`;
const exec = cmd => execSync(cmd, {encoding: 'utf8'});

describe('Tables PredictionAPI', () => {
it('should perform single prediction', async () => {
it('should perform single prediction', async function () {
this.retries(5);
await delay(this.test);

const inputs = [
{numberValue: 39}, // Age
{stringValue: 'technician'}, // Job
Expand Down

0 comments on commit 6c570d3

Please sign in to comment.