@@ -460,7 +460,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
460
460
logsBuffer .Reset ()
461
461
462
462
////////////////////////////////////////////////////////////////////////////
463
- // Update the service by setting the `trafficDistribution: PreferLocal ` field
463
+ // Update the service by setting the `trafficDistribution: PreferClose ` field
464
464
//
465
465
// Assert that the respective EndpointSlices get the same-zone hints.
466
466
////////////////////////////////////////////////////////////////////////////
@@ -469,7 +469,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
469
469
svc .Spec .TrafficDistribution = & trafficDist
470
470
_ , err = client .CoreV1 ().Services (ns .Name ).Update (ctx , svc , metav1.UpdateOptions {})
471
471
if err != nil {
472
- t .Fatalf ("Failed to update test service with 'trafficDistribution: PreferLocal ': %v" , err )
472
+ t .Fatalf ("Failed to update test service with 'trafficDistribution: PreferClose ': %v" , err )
473
473
}
474
474
475
475
endpointSlicesHaveSameZoneHints := func (ctx context.Context ) (bool , error ) {
@@ -536,7 +536,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
536
536
// service.
537
537
//
538
538
// Assert that EndpointSlice for service again has the correct same-zone
539
- // hints because of the `trafficDistribution: PreferLocal ` field.
539
+ // hints because of the `trafficDistribution: PreferClose ` field.
540
540
////////////////////////////////////////////////////////////////////////////
541
541
svc .Annotations = map [string ]string {}
542
542
_ , err = client .CoreV1 ().Services (ns .Name ).Update (ctx , svc , metav1.UpdateOptions {})
@@ -552,7 +552,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
552
552
logsBuffer .Reset ()
553
553
554
554
////////////////////////////////////////////////////////////////////////////
555
- // Remove the field `trafficDistribution: PreferLocal ` from the service.
555
+ // Remove the field `trafficDistribution: PreferClose ` from the service.
556
556
//
557
557
// Assert that EndpointSlice for service again has no zone hints.
558
558
////////////////////////////////////////////////////////////////////////////
@@ -588,7 +588,7 @@ func Test_TrafficDistribution_FeatureGateEnableDisable(t *testing.T) {
588
588
}
589
589
590
590
////////////////////////////////////////////////////////////////////////////
591
- // Create a Service and set `trafficDistribution: PreferLocal ` field.
591
+ // Create a Service and set `trafficDistribution: PreferClose ` field.
592
592
//
593
593
// Assert that the field is present in the created Service.
594
594
////////////////////////////////////////////////////////////////////////////
0 commit comments