@@ -235,7 +235,7 @@ void testToBuilder() {
235235 builder -> {
236236 throw new UnsupportedOperationException ();
237237 };
238- Map <String , ?> directPathServiceConfig = ImmutableMap .of ("loadbalancingConfig" , "grpclb " );
238+ Map <String , ?> directPathServiceConfig = ImmutableMap .of ("loadbalancingConfig" , "pick_first " );
239239 List <InstantiatingGrpcChannelProvider .HardBoundTokenTypes > hardBoundTokenTypes =
240240 new ArrayList <>();
241241 hardBoundTokenTypes .add (InstantiatingGrpcChannelProvider .HardBoundTokenTypes .ALTS );
@@ -547,14 +547,9 @@ void testWithDefaultDirectPathServiceConfig() {
547547 ImmutableMap <String , ?> defaultServiceConfig = provider .directPathServiceConfig ;
548548
549549 List <Map <String , ?>> lbConfigs = getAsObjectList (defaultServiceConfig , "loadBalancingConfig" );
550- assertThat (lbConfigs ).hasSize (2 );
550+ assertThat (lbConfigs ).hasSize (1 );
551551 Map <String , ?> lbConfig = lbConfigs .get (0 );
552- Map <String , ?> grpclb = getAsObject (lbConfig , "grpclb" );
553- List <Map <String , ?>> childPolicies = getAsObjectList (grpclb , "childPolicy" );
554- assertThat (childPolicies ).hasSize (1 );
555- Map <String , ?> childPolicy = childPolicies .get (0 );
556- assertThat (childPolicy .keySet ()).containsExactly ("pick_first" );
557- assertThat (lbConfigs .get (1 ).keySet ()).containsExactly ("pick_first" );
552+ assertThat (lbConfig .keySet ()).containsExactly ("pick_first" );
558553 }
559554
560555 @ Nullable
@@ -600,10 +595,10 @@ void testWithCustomDirectPathServiceConfig() {
600595 ImmutableMap <String , Object > childPolicy =
601596 ImmutableMap .<String , Object >of (
602597 "childPolicy" , ImmutableList .of (pickFirstStrategy ), "foo" , "bar" );
603- ImmutableMap <String , Object > grpcLbPolicy =
604- ImmutableMap .<String , Object >of ("grpclb " , childPolicy );
598+ ImmutableMap <String , Object > customLbPolicy =
599+ ImmutableMap .<String , Object >of ("my_custom_lb " , childPolicy );
605600 Map <String , Object > passedServiceConfig = new HashMap <>();
606- passedServiceConfig .put ("loadBalancingConfig" , ImmutableList .of (grpcLbPolicy ));
601+ passedServiceConfig .put ("loadBalancingConfig" , ImmutableList .of (customLbPolicy ));
607602
608603 InstantiatingGrpcChannelProvider provider =
609604 InstantiatingGrpcChannelProvider .newBuilder ()
0 commit comments