Merge pull request #93478 from sjenning/fixup-helper-test

kubelet: eviction: remove unexpected output from TestGetReclaimableThreshold
This commit is contained in:
Kubernetes Prow Robot
2020-08-02 10:07:40 -07:00
committed by GitHub

View File

@@ -23,7 +23,7 @@ import (
"testing"
"time"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
@@ -91,8 +91,7 @@ func TestGetReclaimableThreshold(t *testing.T) {
}
for testName, testCase := range testCases {
sort.Sort(byEvictionPriority(testCase.thresholds))
_, resource, ok := getReclaimableThreshold(testCase.thresholds)
print(resource)
_, _, ok := getReclaimableThreshold(testCase.thresholds)
if !ok {
t.Errorf("Didn't find reclaimable threshold, test: %v", testName)
}