1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 13:29:11 +01:00

refactor(TestPodAntiAffinity): inline p6

This commit is contained in:
Jan Chaloupka
2025-12-15 13:53:43 +01:00
parent 9f2d22c1f7
commit 03b5a9a967

View File

@@ -117,12 +117,6 @@ func buildTestPodNonEvictableForNode1() *v1.Pod {
func TestPodAntiAffinity(t *testing.T) {
p6 := buildTestPodForNode1("p6", func(pod *v1.Pod) {
test.SetNormalOwnerRef(pod)
setLabelsFooBar(pod)
setPodAntiAffinityFoo1Bar1(pod)
test.SetPodPriority(pod, 50)
})
p7 := buildTestPodForNode1("p7", func(pod *v1.Pod) {
test.SetNormalOwnerRef(pod)
setLabelsFoo1Bar1(pod)
@@ -225,7 +219,13 @@ func TestPodAntiAffinity(t *testing.T) {
setPodAntiAffinityFoo1Bar1(pod)
test.SetPodPriority(pod, 100)
}),
p6, p7},
buildTestPodForNode1("p6", func(pod *v1.Pod) {
test.SetNormalOwnerRef(pod)
setLabelsFooBar(pod)
setPodAntiAffinityFoo1Bar1(pod)
test.SetPodPriority(pod, 50)
}),
p7},
nodes: []*v1.Node{
buildTestNode1(),
},