Skip to content

Commit

Permalink
chore: moved retry into correct place (#614)
Browse files Browse the repository at this point in the history
* chore: moved retry into correct place

* removed eslint comment
  • Loading branch information
munkhuushmgl authored and Ace Nassri committed Nov 17, 2022
1 parent 1eac279 commit 099ed42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const REGION_TAG = 'translate_batch_translate_text_with_glossary';

describe(REGION_TAG, function () {
this.retries(3);
describe(REGION_TAG, () => {
const translationClient = new TranslationServiceClient();
const location = 'us-central1';
const glossaryId = `my_test_glossary_${uuid.v4()}`;
Expand Down Expand Up @@ -72,7 +71,8 @@ describe(REGION_TAG, function () {
await operation.promise();
});

it('should batch translate the input text with a glossary', async () => {
it('should batch translate the input text with a glossary', async function () {
this.retries(3);
const projectId = await translationClient.getProjectId();
const inputUri = 'gs://cloud-samples-data/translation/text.txt';

Expand Down

0 comments on commit 099ed42

Please sign in to comment.