fix ut fail

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
pull/7603/head
Lyndon-Li 2024-04-01 13:28:37 +08:00
parent 67bd694d1b
commit 90e9efc544
1 changed files with 0 additions and 12 deletions

View File

@ -739,7 +739,6 @@ func TestToSystemAffinity(t *testing.T) {
NodeSelector: metav1.LabelSelector{
MatchLabels: map[string]string{
"key-1": "value-1",
"key-2": "value-2",
},
},
},
@ -754,11 +753,6 @@ func TestToSystemAffinity(t *testing.T) {
Values: []string{"value-1"},
Operator: corev1.NodeSelectorOpIn,
},
{
Key: "key-2",
Values: []string{"value-2"},
Operator: corev1.NodeSelectorOpIn,
},
},
},
},
@ -771,7 +765,6 @@ func TestToSystemAffinity(t *testing.T) {
loadAffinity: &nodeagent.LoadAffinity{
NodeSelector: metav1.LabelSelector{
MatchLabels: map[string]string{
"key-1": "value-1",
"key-2": "value-2",
},
MatchExpressions: []metav1.LabelSelectorRequirement{
@ -794,11 +787,6 @@ func TestToSystemAffinity(t *testing.T) {
NodeSelectorTerms: []corev1.NodeSelectorTerm{
{
MatchExpressions: []corev1.NodeSelectorRequirement{
{
Key: "key-1",
Values: []string{"value-1"},
Operator: corev1.NodeSelectorOpIn,
},
{
Key: "key-2",
Values: []string{"value-2"},