topology_test.go: fix a test setup bug

The "node local endpoints, hints are ignored" test was not actually
enabling topology correctly, so it would have gotten the expected
result even if the code was wrong. (Which, FTR, it wasn't.)
This commit is contained in:
Dan Winship 2021-11-17 11:52:57 -05:00
parent 67b2b347d1
commit 7240d87f79

View File

@ -110,7 +110,7 @@ func TestFilterEndpoints(t *testing.T) {
name: "node local endpoints, hints are ignored",
hintsEnabled: true,
nodeLabels: map[string]string{v1.LabelTopologyZone: "zone-a"},
serviceInfo: &BaseServiceInfo{nodeLocalExternal: true},
serviceInfo: &BaseServiceInfo{nodeLocalExternal: true, hintsAnnotation: "auto"},
endpoints: []endpoint{
{ip: "10.1.2.3", zoneHints: sets.NewString("zone-a")},
{ip: "10.1.2.4", zoneHints: sets.NewString("zone-b")},