Skip to content

Commit e1f70f1

Browse files
munkhuushmglAce Nassri
authored and
Ace Nassri
committed
samples: increased timeout on batch_translate (#571)
1 parent ee3a9b7 commit e1f70f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

translate/test/v3beta1/translate_batch_translate_text_beta.test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe(REGION_TAG, () => {
4949
});
5050
});
5151

52-
it('should batch translate the input text', async () => {
52+
it('should batch translate the input text', async function () {
5353
const projectId = await translationClient.getProjectId();
5454
const inputUri = 'gs://cloud-samples-data/translation/text.txt';
5555

@@ -59,6 +59,9 @@ describe(REGION_TAG, () => {
5959
);
6060
assert.match(output, /Total Characters: 13/);
6161
assert.match(output, /Translated Characters: 13/);
62+
63+
// batch translate fluctuates between 2 to 4 minutes.
64+
this.timeout(300000);
6265
});
6366

6467
// Delete the folder from GCS for cleanup

0 commit comments

Comments
 (0)