Skip to content

Commit cd6f473

Browse files
committed
fix: there was a race condition when running auth test where keys were getting deleted while still being used, so make each key name unique
1 parent d9f01f1 commit cd6f473

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

auth/src/test/java/com/google/cloud/auth/samples/AuthExampleIT.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ public void testAuthExplicitNoPath() throws IOException {
6161
assertTrue(output.contains("Buckets:"));
6262
}
6363

64-
@Ignore("Temporarily disabled due to failing test (Issue #10023).")
6564
@Test
6665
public void testAuthApiKey() throws IOException, IllegalStateException {
67-
//TODO: Re-enable this test after fixing issue #10023.
6866
String projectId = ServiceOptions.getDefaultProjectId();
69-
String keyDisplayName = "Test API Key";
67+
String keyDisplayName = "Test API Key " + System.currentTimeMillis();;
7068
String service = "language.googleapis.com";
7169
String method = "google.cloud.language.v2.LanguageService.AnalyzeSentiment";
7270
Key apiKey = null;

0 commit comments

Comments
 (0)