Skip to content

Commit

Permalink
samples: increased timeout on batch_translate (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhuushmgl authored and Ace Nassri committed Nov 17, 2022
1 parent ee3a9b7 commit e1f70f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe(REGION_TAG, () => {
});
});

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

Expand All @@ -59,6 +59,9 @@ describe(REGION_TAG, () => {
);
assert.match(output, /Total Characters: 13/);
assert.match(output, /Translated Characters: 13/);

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

// Delete the folder from GCS for cleanup
Expand Down

0 comments on commit e1f70f1

Please sign in to comment.