Skip to content

Commit

Permalink
test: fix HttpRpcContextTest to not attempt environment credentials r…
Browse files Browse the repository at this point in the history
…esolution
  • Loading branch information
BenWhitehead committed Jan 10, 2025
1 parent 39509d5 commit e33861e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.junit.Assert.assertTrue;

import com.google.api.client.testing.http.MockLowLevelHttpResponse;
import com.google.cloud.NoCredentials;
import com.google.cloud.TransportOptions;
import com.google.cloud.Tuple;
import com.google.cloud.WriteChannel;
Expand Down Expand Up @@ -66,6 +67,8 @@ public void testInvocationIdIsPassedThrough() {
Storage service =
StorageOptions.getDefaultInstance()
.toBuilder()
.setProjectId("test-project")
.setCredentials(NoCredentials.getInstance())
.setTransportOptions(transportOptions)
.build()
.getService();
Expand Down

0 comments on commit e33861e

Please sign in to comment.