Skip to content

Commit e3ea7fc

Browse files
committed
.
Signed-off-by: gshaibi <gshaibi@nvidia.com>
1 parent 6d95dfd commit e3ea7fc

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pkg/podgrouper/pod_controller_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ func TestIsOrphanPodWithPodGroup(t *testing.T) {
119119
}
120120
assert.False(t, isOrphanPodWithPodGroup(&pod))
121121

122-
// A Pod with no OwnerReferences but referencing a Workload is NOT an
123-
// orphan — the Workload drives subsequent re-reconciliation. Without
124-
// this branch, Workload label mutations stop propagating to the
125-
// PodGroup after the first reconcile.
126122
pod.OwnerReferences = nil
127123
pod.Spec.WorkloadRef = &v1.WorkloadReference{Name: "wl", PodGroup: "g"}
128124
assert.False(t, isOrphanPodWithPodGroup(&pod))

0 commit comments

Comments
 (0)