mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
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:
parent
67b2b347d1
commit
7240d87f79
@ -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")},
|
||||
|
Loading…
Reference in New Issue
Block a user