1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-25 20:59:28 +01:00

refactor(TestDefaultEvictor): replace mirror pod annotation assignments with test.SetMirrorPodAnnotation

This commit is contained in:
Jan Chaloupka
2025-12-20 14:28:08 +01:00
parent 9a5d7e8286
commit 8913d79d14

View File

@@ -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"
}),
},