Updated NewSnapshot interface to accept a NodeInfoMap instead of lists of nodes and pods

This commit is contained in:
Abdullah Gharaibeh
2019-11-12 11:14:17 -05:00
parent 805eecf692
commit 902cf48cd3
35 changed files with 150 additions and 162 deletions

View File

@@ -850,7 +850,7 @@ func TestNodeAffinityPriority(t *testing.T) {
t.Run(test.name, func(t *testing.T) {
state := framework.NewCycleState()
fh, _ := framework.NewFramework(nil, nil, nil, framework.WithSnapshotSharedLister(nodeinfosnapshot.NewSnapshot(nil, test.nodes)))
fh, _ := framework.NewFramework(nil, nil, nil, framework.WithSnapshotSharedLister(nodeinfosnapshot.NewSnapshot(nodeinfosnapshot.CreateNodeInfoMap(nil, test.nodes))))
p, _ := New(nil, fh)
var gotList framework.NodeScoreList
for _, n := range test.nodes {