diff --git a/pkg/sync/sync_context_test.go b/pkg/sync/sync_context_test.go index 341a3911e..8a4cb4062 100644 --- a/pkg/sync/sync_context_test.go +++ b/pkg/sync/sync_context_test.go @@ -797,6 +797,7 @@ func TestNamespaceAutoCreation(t *testing.T) { assert.Len(t, tasks, 2) assert.Contains(t, tasks, task) assert.Equal(t, tasks[0].targetObj.GetAnnotations(), n.Annotations) + assert.Equal(t, tasks[0].targetObj.GetLabels(), n.Labels) })