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

Merge pull request #1781 from ingvagabund/podlifetime-unittest-dry

refactor(TestPodLifeTime): remove ineffective owner references assignments
This commit is contained in:
Kubernetes Prow Robot
2025-12-10 05:39:30 -08:00
committed by GitHub

View File

@@ -83,10 +83,6 @@ func TestPodLifeTime(t *testing.T) {
p8.Namespace = "dev"
p8.ObjectMeta.CreationTimestamp = metav1.NewTime(time.Now().Add(-time.Second * 595))
ownerRef4 := test.GetReplicaSetOwnerRefList()
p5.ObjectMeta.OwnerReferences = ownerRef4
p6.ObjectMeta.OwnerReferences = ownerRef4
// Setup two old pods with different status phases
p9 := test.BuildTestPod("p9", 100, 0, node1.Name, nil)
p9.Namespace = "dev"