From 8913d79d144178387d12151df94e411aa4f08916 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Sat, 20 Dec 2025 14:28:08 +0100 Subject: [PATCH] refactor(TestDefaultEvictor): replace mirror pod annotation assignments with test.SetMirrorPodAnnotation --- pkg/framework/plugins/defaultevictor/defaultevictor_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/framework/plugins/defaultevictor/defaultevictor_test.go b/pkg/framework/plugins/defaultevictor/defaultevictor_test.go index 54732f1da..f1af88fc1 100644 --- a/pkg/framework/plugins/defaultevictor/defaultevictor_test.go +++ b/pkg/framework/plugins/defaultevictor/defaultevictor_test.go @@ -463,7 +463,7 @@ func TestDefaultEvictorFilter(t *testing.T) { pods: []*v1.Pod{ buildTestPod("p10", n1.Name, func(pod *v1.Pod) { test.SetNormalOwnerRef(pod) - pod.Annotations = test.GetMirrorPodAnnotation() + test.SetMirrorPodAnnotation(pod) }), }, }, @@ -472,7 +472,7 @@ func TestDefaultEvictorFilter(t *testing.T) { pods: []*v1.Pod{ buildTestPod("p11", n1.Name, func(pod *v1.Pod) { test.SetNormalOwnerRef(pod) - pod.Annotations = test.GetMirrorPodAnnotation() + test.SetMirrorPodAnnotation(pod) pod.Annotations[evictPodAnnotationKey] = "true" }), },