Skip to content

Commit 7b63cbf

Browse files
committed
chore: Fix logging test
1 parent 659c510 commit 7b63cbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ public void sign_sameAs() throws IOException {
433433
public void getRequestMetadata_hasAccessToken() throws IOException {
434434
TestAppender testAppender = setupTestLogger(ComputeEngineCredentials.class);
435435
MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory();
436+
transportFactory.transport.setServiceAccountEmail("[email protected]");
436437
ComputeEngineCredentials credentials =
437438
ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build();
438439
Map<String, List<String>> metadata = credentials.getRequestMetadata(CALL_URI);

0 commit comments

Comments
 (0)