Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
testing(translate): bump the timeout for operations [(#4258)](GoogleC…
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo authored and danoscarmike committed Jul 31, 2020
1 parent fb0171f commit 1352496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/snippets/beta_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def batch_translate_text(project_id, input_uri, output_uri):
input_configs=[input_config],
output_config=output_config)

result = operation.result(180)
result = operation.result(timeout=240)

print(u'Total Characters: {}'.format(result.total_characters))
print(u'Translated Characters: {}'.format(result.translated_characters))
Expand Down
1 change: 1 addition & 0 deletions samples/snippets/translate_v3_batch_translate_text_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +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
)
out, _ = capsys.readouterr()
assert "Total Characters" in out

0 comments on commit 1352496

Please sign in to comment.