diff --git a/pkg/models/project_test.go b/pkg/models/project_test.go index 59da28d7c..f60b55e77 100644 --- a/pkg/models/project_test.go +++ b/pkg/models/project_test.go @@ -591,12 +591,15 @@ func TestProject_ReadAll(t *testing.T) { if db.ParadeDBAvailable() { // ParadeDB fuzzy(1, prefix=true) on "TEST10" also matches // "test1", "test11", "test19", "test30" (edit distance 1), etc. - require.Len(t, ls, 6) + // The recursive CTE also pulls in project 43 as a child of the + // matched project 10 (reparent-escalation fixture). + require.Len(t, ls, 7) projectIDs := make([]int64, len(ls)) for i, p := range ls { projectIDs[i] = p.ID } assert.Contains(t, projectIDs, int64(10)) + assert.Contains(t, projectIDs, int64(43)) assert.Contains(t, projectIDs, int64(-1)) } else { // Expect project 10 (the search target), project 43 (its child —