@@ -46,10 +46,6 @@ func TestFilterOutUnremovable(t *testing.T) {
46
46
justDeletedNode .Spec .Taints = []apiv1.Taint {{Key : deletetaint .ToBeDeletedTaint , Value : strconv .FormatInt (now .Unix ()- 30 , 10 )}}
47
47
SetNodeReadyState (justDeletedNode , true , time.Time {})
48
48
49
- tooOldDeletedNode := BuildTestNode ("tooOldDeleted" , 1000 , 10 )
50
- tooOldDeletedNode .Spec .Taints = []apiv1.Taint {{Key : deletetaint .ToBeDeletedTaint , Value : strconv .FormatInt (now .Unix ()- 301 , 10 )}}
51
- SetNodeReadyState (tooOldDeletedNode , true , time.Time {})
52
-
53
49
noScaleDownNode := BuildTestNode ("noScaleDown" , 1000 , 10 )
54
50
noScaleDownNode .Annotations = map [string ]string {ScaleDownDisabledKey : "true" }
55
51
SetNodeReadyState (noScaleDownNode , true , time.Time {})
@@ -76,11 +72,6 @@ func TestFilterOutUnremovable(t *testing.T) {
76
72
nodes : []* apiv1.Node {regularNode , justDeletedNode },
77
73
want : []string {"regular" },
78
74
},
79
- {
80
- desc : "deleted long time ago stays" ,
81
- nodes : []* apiv1.Node {regularNode , tooOldDeletedNode },
82
- want : []string {"regular" , "tooOldDeleted" },
83
- },
84
75
{
85
76
desc : "marked no scale down is filtered out" ,
86
77
nodes : []* apiv1.Node {noScaleDownNode , regularNode },
0 commit comments