Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 6a19488

Browse files
fix tests - ClientSettings shouldnt try to get default credentials if it doesnt need em
Change-Id: I9924d7b9f1cf40b81e11a66030109c877eba6a75
1 parent 9fa3193 commit 6a19488

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/ClientSettings.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public abstract static class Builder {
5050
abstract ClientSettings autoBuild(); // not public
5151

5252
public ClientSettings build() {
53+
if (getChannelProvider() != null) {
54+
return autoBuild();
55+
}
56+
5357
Credentials creds;
5458
try {
5559
creds = GoogleCredentials.getApplicationDefault();

0 commit comments

Comments
 (0)