Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ private void verifyHash(String hash) {
private SpannerOptions newTestOptions() {
return SpannerOptions.newBuilder()
.setProjectId("host-project")
// The builder picks up SPANNER_EMULATOR_HOST from the environment, and building with an
// emulator host replaces the credentials below with NoCredentials. Built-in metrics are
// disabled for a client without credentials, so leave the emulator out of these tests.
.setEmulatorHost(null)
.setCredentials(
OAuth2Credentials.create(new AccessToken("test-token", new Date(Long.MAX_VALUE))))
.build();
Expand Down
Loading