From 0aafd26f30fa3a9959b29b5dadec63def520e960 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Thu, 17 Dec 2020 14:05:17 -0800 Subject: [PATCH] chore: temp fix for flaky test (batch service known as flaky across all languages) (#605) --- .../v3/translate_batch_translate_text_with_model.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translate/test/v3/translate_batch_translate_text_with_model.test.js b/translate/test/v3/translate_batch_translate_text_with_model.test.js index 9fa9df6be94..a5a438ef268 100644 --- a/translate/test/v3/translate_batch_translate_text_with_model.test.js +++ b/translate/test/v3/translate_batch_translate_text_with_model.test.js @@ -25,8 +25,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const REGION_TAG = 'translate_batch_translate_text_with_model'; -describe(REGION_TAG, function () { - this.retries(3); +describe(REGION_TAG, () => { const translationClient = new TranslationServiceClient(); const location = 'us-central1'; const modelId = 'TRL1218052175389786112'; @@ -51,7 +50,8 @@ describe(REGION_TAG, function () { }); }); - it('should batch translate the input text with a model', async () => { + it('should batch translate the input text with a model', async function () { + this.retries(3); const projectId = await translationClient.getProjectId(); const inputUri = 'gs://cloud-samples-data/translation/custom_model_text.txt';