Skip to content

Commit 24e0f2a

Browse files
authored
fix requireEnvVar (GoogleCloudPlatform#3695)
* fix requireEnvVar * merge master
1 parent 493f87f commit 24e0f2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

speech/cloud-client/src/test/java/com/example/speech/TranscribeDiarizationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public class TranscribeDiarizationIT {
4242

4343
private static void requireEnvVar(String varName) {
4444
assertNotNull(
45-
System.getenv(varName),
46-
"Environment variable '%s' is required to perform these tests.".format(varName));
45+
"Environment variable '" + varName + "' is required to perform these tests.",
46+
System.getenv(varName));
4747
}
4848

4949
@BeforeClass

vision/cloud-client/src/test/java/com/example/vision/AsyncBatchAnnotateImagesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public class AsyncBatchAnnotateImagesTest {
4949

5050
private static void requireEnvVar(String varName) {
5151
assertNotNull(
52-
System.getenv(varName),
53-
"Environment variable '%s' is required to perform these tests.".format(varName));
52+
"Environment variable '" + varName + "' is required to perform these tests.",
53+
System.getenv(varName));
5454
}
5555

5656
@BeforeClass

0 commit comments

Comments
 (0)