From a4f043a9806b7108dcde34e8c711aec78e2daa3c Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Mon, 27 Jul 2020 13:53:55 -0500 Subject: [PATCH] kubelet: eviction: remove noise from TestGetReclaimableThreshold test output --- pkg/kubelet/eviction/helpers_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/kubelet/eviction/helpers_test.go b/pkg/kubelet/eviction/helpers_test.go index 65b5d064170..058563501af 100644 --- a/pkg/kubelet/eviction/helpers_test.go +++ b/pkg/kubelet/eviction/helpers_test.go @@ -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) }