mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-03-09 01:50:56 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue