Skip to content

Commit c6fc919

Browse files
authored
fix: increase batch translation timeout to 300 (GoogleCloudPlatform#4357)
* fix: increase batch translation timeout to 300 * fix: extends batch translate with glossary timeout too
1 parent e67b014 commit c6fc919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

translate/cloud-client/translate_v3_batch_translate_text_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_batch_translate_text(capsys, bucket):
4242
"gs://cloud-samples-data/translation/text.txt",
4343
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
4444
PROJECT_ID,
45-
timeout=240
45+
timeout=300
4646
)
4747
out, _ = capsys.readouterr()
4848
assert "Total Characters" in out

translate/cloud-client/translate_v3_batch_translate_text_with_glossary_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_batch_translate_text_with_glossary(capsys, bucket, glossary):
7373
"gs://{}/translation/BATCH_TRANSLATION_OUTPUT/".format(bucket.name),
7474
PROJECT_ID,
7575
glossary,
76-
240
76+
300
7777
)
7878

7979
out, _ = capsys.readouterr()

0 commit comments

Comments
 (0)