Skip to content

Commit 6b6855f

Browse files
Wei WengWei Weng
authored andcommitted
fix unit test
Signed-off-by: Wei Weng <[email protected]>
1 parent 4ad25e2 commit 6b6855f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/utils/common_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ func TestShouldPropagateObj_PodAndReplicaSet(t *testing.T) {
12451245
want: false,
12461246
},
12471247
{
1248-
name: "pod owned by replicaset should NOT propagate",
1248+
name: "pod owned by replicaset - passes ShouldPropagateObj but filtered by resource config",
12491249
obj: map[string]interface{}{
12501250
"apiVersion": "v1",
12511251
"kind": "Pod",
@@ -1262,7 +1262,7 @@ func TestShouldPropagateObj_PodAndReplicaSet(t *testing.T) {
12621262
UID: "67890",
12631263
},
12641264
},
1265-
want: false,
1265+
want: true, // ShouldPropagateObj doesn't filter Pods - they're filtered by NewResourceConfig
12661266
},
12671267
{
12681268
name: "controllerrevision owned by daemonset should NOT propagate",

0 commit comments

Comments
 (0)