Skip to content

Commit

Permalink
samples(tests): added retry logic to flaky batch tests (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhuushmgl authored Oct 9, 2020
1 parent d3f17c4 commit 39adafb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion translate/test/v3/translate_batch_translate_text.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const REGION_TAG = 'translate_batch_translate_text';

describe(REGION_TAG, () => {
describe(REGION_TAG, function () {
this.retries(3);
const translationClient = new TranslationServiceClient();
const location = 'us-central1';
const bucketUuid = uuid.v4();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const REGION_TAG = 'translate_batch_translate_text_with_glossary';

describe(REGION_TAG, () => {
describe(REGION_TAG, function () {
this.retries(3);
const translationClient = new TranslationServiceClient();
const location = 'us-central1';
const glossaryId = `my_test_glossary_${uuid.v4()}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const REGION_TAG = 'translate_batch_translate_text_with_glossary_and_model';

describe(REGION_TAG, () => {
describe(REGION_TAG, function () {
this.retries(3);
const translationClient = new TranslationServiceClient();
const location = 'us-central1';
const glossaryId = `my_test_glossary_${uuid.v4()}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const REGION_TAG = 'translate_batch_translate_text_with_model';

describe(REGION_TAG, () => {
describe(REGION_TAG, function () {
this.retries(3);
const translationClient = new TranslationServiceClient();
const location = 'us-central1';
const modelId = 'TRL1218052175389786112';
Expand Down

0 comments on commit 39adafb

Please sign in to comment.