-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
translate: use unique gcs folders for batch translate tests #2053
Conversation
Fix: #2051 |
@@ -137,7 +139,7 @@ public void testBatchTranslateTextWithGlossaryAndModel() | |||
"en", | |||
"ja", | |||
INPUT_URI, | |||
"gs://" + PROJECT_ID + "/BATCH_TRANSLATION_OUTPUT/", | |||
"gs://" + PROJECT_ID + "/" + PREFIX_PATH, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok - but as I look at this, I wonder if String.format should be used as being a bit clearer, I've decided that it's just longer, but I wish we'd get rid of all the string contraction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to use a variable.
private static final String OUTPUT_URI =
String.format("gs://%s/%s/%s/", PROJECT_ID, PREFIX, UUID.randomUUID());
…2053) * translate: use unique gcs folders for batch translate tests * update based on feedback * fix typo
…2053) * translate: use unique gcs folders for batch translate tests * update based on feedback * fix typo
…2053) * translate: use unique gcs folders for batch translate tests * update based on feedback * fix typo
…2053) * translate: use unique gcs folders for batch translate tests * update based on feedback * fix typo
No description provided.