@@ -470,9 +470,8 @@ func (s) TestBuildLeafClusterConfig_DNS(t *testing.T) {
470470 }
471471}
472472
473- // TestBuildLeafClusterConfig_EDS_PickFirstWeightedShuffling_Disabled tests
474- // buildLeafClusterConfig with an EDS cluster configuration when pick_first
475- // weighted shuffling is disabled.
473+ // Test verifies buildLeafClusterConfig with an EDS cluster configuration
474+ // when pick_first weighted shuffling is disabled.
476475func (s ) TestBuildLeafClusterConfig_EDS_PickFirstWeightedShuffling_Disabled (t * testing.T ) {
477476 testutils .SetEnvConfig (t , & envconfig .PickFirstWeightedShuffling , false )
478477
@@ -509,10 +508,10 @@ func (s) TestBuildLeafClusterConfig_EDS_PickFirstWeightedShuffling_Disabled(t *t
509508 Denominator : million ,
510509 }},
511510 Localities : []xdsresource.Locality {
512- makeLocality ( 3 , 80 , 1 , 2 ) ,
513- makeLocality ( 1 , 80 , 0 , 2 ) ,
514- makeLocality ( 2 , 20 , 1 , 2 ) ,
515- makeLocality ( 0 , 20 , 0 , 2 ) ,
511+ loc3 ,
512+ loc1 ,
513+ loc2 ,
514+ loc0 ,
516515 },
517516 },
518517 },
@@ -611,10 +610,10 @@ func (s) TestBuildLeafClusterConfig_EDS_PickFirstWeightedShuffling_Enabled(t *te
611610 Denominator : million ,
612611 }},
613612 Localities : []xdsresource.Locality {
614- makeLocality ( 3 , 80 , 1 , 2 ) ,
615- makeLocality ( 1 , 80 , 0 , 2 ) ,
616- makeLocality ( 2 , 20 , 1 , 2 ) ,
617- makeLocality ( 0 , 20 , 0 , 2 ) ,
613+ loc3 ,
614+ loc1 ,
615+ loc2 ,
616+ loc0 ,
618617 },
619618 },
620619 },
@@ -805,10 +804,10 @@ func (s) TestBuildClusterImplConfigForEDS_PickFirstWeightedShuffling_Disabled(t
805804 Denominator : million ,
806805 }},
807806 Localities : []xdsresource.Locality {
808- makeLocality ( 3 , 80 , 1 , 2 ) ,
809- makeLocality ( 1 , 80 , 0 , 2 ) ,
810- makeLocality ( 2 , 20 , 1 , 2 ) ,
811- makeLocality ( 0 , 20 , 0 , 2 ) ,
807+ loc3 ,
808+ loc1 ,
809+ loc2 ,
810+ loc0 ,
812811 },
813812 },
814813 },
@@ -882,10 +881,10 @@ func (s) TestBuildClusterImplConfigForEDS_PickFirstWeightedShuffling_Enabled(t *
882881 Denominator : million ,
883882 }},
884883 Localities : []xdsresource.Locality {
885- makeLocality ( 3 , 80 , 1 , 2 ) ,
886- makeLocality ( 1 , 80 , 0 , 2 ) ,
887- makeLocality ( 2 , 20 , 1 , 2 ) ,
888- makeLocality ( 0 , 20 , 0 , 2 ) ,
884+ loc3 ,
885+ loc1 ,
886+ loc2 ,
887+ loc0 ,
889888 },
890889 },
891890 },
0 commit comments