From 29223c6d9d69783af9e32ae91e4d0316babef99e Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 22 Jul 2020 14:34:21 -0700 Subject: [PATCH 1/2] fix: increase batch translation timeout to 300 --- .../cloud-client/translate_v3_batch_translate_text_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/cloud-client/translate_v3_batch_translate_text_test.py b/translate/cloud-client/translate_v3_batch_translate_text_test.py index f604a3e1ac07..76a1200b7dd3 100644 --- a/translate/cloud-client/translate_v3_batch_translate_text_test.py +++ b/translate/cloud-client/translate_v3_batch_translate_text_test.py @@ -42,7 +42,7 @@ def test_batch_translate_text(capsys, bucket): "gs://cloud-samples-data/translation/text.txt", "gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name), PROJECT_ID, - timeout=240 + timeout=300 ) out, _ = capsys.readouterr() assert "Total Characters" in out From 6bbb02f6c5f79982a538babbfd83ca74ba03b2e7 Mon Sep 17 00:00:00 2001 From: Eric Schmidt Date: Wed, 22 Jul 2020 15:33:27 -0700 Subject: [PATCH 2/2] fix: extends batch translate with glossary timeout too --- .../translate_v3_batch_translate_text_with_glossary_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translate/cloud-client/translate_v3_batch_translate_text_with_glossary_test.py b/translate/cloud-client/translate_v3_batch_translate_text_with_glossary_test.py index 23aa6691f1ee..7a14f9515638 100644 --- a/translate/cloud-client/translate_v3_batch_translate_text_with_glossary_test.py +++ b/translate/cloud-client/translate_v3_batch_translate_text_with_glossary_test.py @@ -73,7 +73,7 @@ def test_batch_translate_text_with_glossary(capsys, bucket, glossary): "gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name), PROJECT_ID, glossary, - 240 + 300 ) out, _ = capsys.readouterr()