From 0be137e3977077d5d0792b85fa006887a12da012 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 4 Aug 2020 16:52:43 -0700 Subject: [PATCH] samples: increased timeout on batch_translate (#571) --- .../test/v3beta1/translate_batch_translate_text_beta.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/translate/test/v3beta1/translate_batch_translate_text_beta.test.js b/translate/test/v3beta1/translate_batch_translate_text_beta.test.js index 69614c30068..93ab9067bc0 100644 --- a/translate/test/v3beta1/translate_batch_translate_text_beta.test.js +++ b/translate/test/v3beta1/translate_batch_translate_text_beta.test.js @@ -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'; @@ -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