This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
main/java/com/google/cloud/spanner/spi/v1
test/java/com/google/cloud/spanner Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff line change 3838import 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 ;
You can’t perform that action at this time.
0 commit comments