mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	kubelet: eviction: remove noise from TestGetReclaimableThreshold test output
This commit is contained in:
		@@ -23,7 +23,7 @@ import (
 | 
				
			|||||||
	"testing"
 | 
						"testing"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"k8s.io/api/core/v1"
 | 
						v1 "k8s.io/api/core/v1"
 | 
				
			||||||
	"k8s.io/apimachinery/pkg/api/resource"
 | 
						"k8s.io/apimachinery/pkg/api/resource"
 | 
				
			||||||
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
						metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
 | 
				
			||||||
	"k8s.io/apimachinery/pkg/types"
 | 
						"k8s.io/apimachinery/pkg/types"
 | 
				
			||||||
@@ -91,8 +91,7 @@ func TestGetReclaimableThreshold(t *testing.T) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	for testName, testCase := range testCases {
 | 
						for testName, testCase := range testCases {
 | 
				
			||||||
		sort.Sort(byEvictionPriority(testCase.thresholds))
 | 
							sort.Sort(byEvictionPriority(testCase.thresholds))
 | 
				
			||||||
		_, resource, ok := getReclaimableThreshold(testCase.thresholds)
 | 
							_, _, ok := getReclaimableThreshold(testCase.thresholds)
 | 
				
			||||||
		print(resource)
 | 
					 | 
				
			||||||
		if !ok {
 | 
							if !ok {
 | 
				
			||||||
			t.Errorf("Didn't find reclaimable threshold, test: %v", testName)
 | 
								t.Errorf("Didn't find reclaimable threshold, test: %v", testName)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user