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

Commit d719633

Browse files
committed
fix test
1 parent 4bab789 commit d719633

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ public GapicSpannerRpc(final SpannerOptions options) {
399399
// If it is enabled in options uses the channel pool provided by the gRPC-GCP extension.
400400
maybeEnableGrpcGcpExtension(defaultChannelProviderBuilder, options);
401401

402-
boolean enableLocationApi = options.isEnableLocationApi();
402+
boolean enableLocationApi =
403+
options.isEnableLocationApi()
404+
|| Boolean.parseBoolean(System.getenv(EXPERIMENTAL_LOCATION_API_ENV_VAR));
403405
TransportChannelProvider baseChannelProvider =
404406
MoreObjects.firstNonNull(
405407
options.getChannelProvider(), defaultChannelProviderBuilder.build());

google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpanFEBypassTest.java renamed to google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import org.junit.runners.JUnit4;
3939

4040
@RunWith(JUnit4.class)
41-
public class SpanFEBypassTest extends AbstractMockServerTest {
41+
public class LocationAwareTest extends AbstractMockServerTest {
4242
private static final Statement SELECT_RANDOM_STATEMENT = Statement.of("select * from random");
4343
private static final int RANDOM_RESULT_ROW_COUNT = 20;
4444
private static Spanner spanner;

0 commit comments

Comments
 (0)