Skip to content

Commit

Permalink
samples: translate --> fixes timeout issue (#567)
Browse files Browse the repository at this point in the history
* samples: translate --> fixes timepoout issue

* lint unhappy

* added missing zero

* added zero

* fixed lint
  • Loading branch information
munkhuushmgl authored Jul 30, 2020
1 parent b061acf commit 5914eb7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe(REGION_TAG, () => {
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 () {
const projectId = await translationClient.getProjectId();
const inputUri =
'gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt';
Expand All @@ -83,6 +83,9 @@ describe(REGION_TAG, () => {
);
assert.match(output, /Total Characters: 25/);
assert.match(output, /Translated Characters: 25/);

// batch translate fluctuates between 2 to 4 minutes.
this.timeout(300000);
});

// Delete the folder from GCS for cleanup
Expand Down

0 comments on commit 5914eb7

Please sign in to comment.