Skip to content

Commit eaa8367

Browse files
munkhuushmglAce Nassri
authored andcommitted
samples: translate --> fixes timeout issue (#567)
* samples: translate --> fixes timepoout issue * lint unhappy * added missing zero * added zero * fixed lint
1 parent 4cd9b7f commit eaa8367

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

translate/test/v3/translate_batch_translate_text_with_glossary_and_model.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe(REGION_TAG, () => {
7272
await operation.promise();
7373
});
7474

75-
it('should batch translate the input text with a glossary', async () => {
75+
it('should batch translate the input text with a glossary', async function () {
7676
const projectId = await translationClient.getProjectId();
7777
const inputUri =
7878
'gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt';
@@ -83,6 +83,9 @@ describe(REGION_TAG, () => {
8383
);
8484
assert.match(output, /Total Characters: 25/);
8585
assert.match(output, /Translated Characters: 25/);
86+
87+
// batch translate fluctuates between 2 to 4 minutes.
88+
this.timeout(300000);
8689
});
8790

8891
// Delete the folder from GCS for cleanup

0 commit comments

Comments
 (0)