diff --git a/plugin/pkg/scheduler/algorithm/predicates/predicates_test.go b/plugin/pkg/scheduler/algorithm/predicates/predicates_test.go old mode 100644 new mode 100755 index 1a94b1767e..4867da6726 --- a/plugin/pkg/scheduler/algorithm/predicates/predicates_test.go +++ b/plugin/pkg/scheduler/algorithm/predicates/predicates_test.go @@ -196,12 +196,20 @@ func TestPodFitsResources(t *testing.T) { test: "both resources fit", wErr: nil, }, + { + pod: newResourcePod(resourceRequest{milliCPU: 2, memory: 1}), + nodeInfo: schedulercache.NewNodeInfo( + newResourcePod(resourceRequest{milliCPU: 9, memory: 5})), + fits: false, + test: "one resource memory fits", + wErr: newInsufficientResourceError(cpuResourceName, 2, 9, 10), + }, { pod: newResourcePod(resourceRequest{milliCPU: 1, memory: 2}), nodeInfo: schedulercache.NewNodeInfo( newResourcePod(resourceRequest{milliCPU: 5, memory: 19})), fits: false, - test: "one resources fits", + test: "one resource cpu fits", wErr: newInsufficientResourceError(memoryResourceName, 2, 19, 20), }, {