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 Aug 4, 2020
1 parent 5914eb7 commit e09ae7b
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 e09ae7b

Please sign in to comment.