From 44ed22906956aa0c6b0596d865f01d6eaa9d1e28 Mon Sep 17 00:00:00 2001 From: David Oppenheimer Date: Fri, 3 Jul 2015 01:40:00 -0700 Subject: [PATCH] Foo. --- plugin/pkg/scheduler/algorithm/priorities/priorities_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/pkg/scheduler/algorithm/priorities/priorities_test.go b/plugin/pkg/scheduler/algorithm/priorities/priorities_test.go index 97c3a942841..e4262dc2e6d 100644 --- a/plugin/pkg/scheduler/algorithm/priorities/priorities_test.go +++ b/plugin/pkg/scheduler/algorithm/priorities/priorities_test.go @@ -109,6 +109,9 @@ func TestDumbSpreading(t *testing.T) { list, err := scheduler.PrioritizeNodes( test.pod, algorithm.FakePodLister(test.pods), + // This should match the configuration in defaultPriorities() in + // plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go if you want + // to test what's actually in production. []algorithm.PriorityConfig{{Function: LeastRequestedPriority, Weight: 1}, {Function: BalancedResourceAllocation, Weight: 1}, {Function: DumbSpreadingPriority, Weight: 2}, {Function: NewServiceSpreadPriority(algorithm.FakeServiceLister([]api.Service{})), Weight: 1}}, algorithm.FakeMinionLister(api.NodeList{Items: test.nodes})) if err != nil {