From 90e9efc544855c01e32fc6416948cfc140776f0e Mon Sep 17 00:00:00 2001 From: Lyndon-Li Date: Mon, 1 Apr 2024 13:28:37 +0800 Subject: [PATCH] fix ut fail Signed-off-by: Lyndon-Li --- pkg/exposer/csi_snapshot_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/exposer/csi_snapshot_test.go b/pkg/exposer/csi_snapshot_test.go index 36168823c..6fbee7450 100644 --- a/pkg/exposer/csi_snapshot_test.go +++ b/pkg/exposer/csi_snapshot_test.go @@ -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"},