Skip to content

Commit df10b23

Browse files
author
Takashi Matsuo
authored
testing(translate): bump the timeout for operations (#4258)
fixes #4220
1 parent d7c3f96 commit df10b23

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

translate/cloud-client/beta_snippets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def batch_translate_text(project_id, input_uri, output_uri):
7070
input_configs=[input_config],
7171
output_config=output_config)
7272

73-
result = operation.result(180)
73+
result = operation.result(timeout=240)
7474

7575
print(u'Total Characters: {}'.format(result.total_characters))
7676
print(u'Translated Characters: {}'.format(result.translated_characters))

translate/cloud-client/translate_v3_batch_translate_text_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +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
4546
)
4647
out, _ = capsys.readouterr()
4748
assert "Total Characters" in out

0 commit comments

Comments
 (0)