Skip to content

Commit 6403430

Browse files
committed
Fix comments in TrafficDistribution integration test
1 parent b4c6895 commit 6403430

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/integration/service/service_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
460460
logsBuffer.Reset()
461461

462462
////////////////////////////////////////////////////////////////////////////
463-
// Update the service by setting the `trafficDistribution: PreferLocal` field
463+
// Update the service by setting the `trafficDistribution: PreferClose` field
464464
//
465465
// Assert that the respective EndpointSlices get the same-zone hints.
466466
////////////////////////////////////////////////////////////////////////////
@@ -469,7 +469,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
469469
svc.Spec.TrafficDistribution = &trafficDist
470470
_, err = client.CoreV1().Services(ns.Name).Update(ctx, svc, metav1.UpdateOptions{})
471471
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)
473473
}
474474

475475
endpointSlicesHaveSameZoneHints := func(ctx context.Context) (bool, error) {
@@ -536,7 +536,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
536536
// service.
537537
//
538538
// 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.
540540
////////////////////////////////////////////////////////////////////////////
541541
svc.Annotations = map[string]string{}
542542
_, err = client.CoreV1().Services(ns.Name).Update(ctx, svc, metav1.UpdateOptions{})
@@ -552,7 +552,7 @@ func Test_TransitionsForTrafficDistribution(t *testing.T) {
552552
logsBuffer.Reset()
553553

554554
////////////////////////////////////////////////////////////////////////////
555-
// Remove the field `trafficDistribution: PreferLocal` from the service.
555+
// Remove the field `trafficDistribution: PreferClose` from the service.
556556
//
557557
// Assert that EndpointSlice for service again has no zone hints.
558558
////////////////////////////////////////////////////////////////////////////
@@ -588,7 +588,7 @@ func Test_TrafficDistribution_FeatureGateEnableDisable(t *testing.T) {
588588
}
589589

590590
////////////////////////////////////////////////////////////////////////////
591-
// Create a Service and set `trafficDistribution: PreferLocal` field.
591+
// Create a Service and set `trafficDistribution: PreferClose` field.
592592
//
593593
// Assert that the field is present in the created Service.
594594
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)