3
0

Fix broken tests (add rec-mod link)

This commit is contained in:
Denis Arh
2022-08-01 19:43:43 +02:00
parent d4fbc33f3d
commit c31f706e95
2 changed files with 4 additions and 0 deletions

View File

@@ -819,6 +819,8 @@ func TestRecord_contextualRolesAccessControl(t *testing.T) {
ModuleID: mod.ID,
}
rr[i].SetModule(mod)
if i%2 == 0 {
// let's own half of the records
rr[i].OwnedBy = user.ID

View File

@@ -161,6 +161,8 @@ func (h helper) makeRecord(module *types.Module, rvs ...*types.RecordValue) *typ
Values: values.Formatter().Run(module, rvs),
}
rec.SetModule(module)
h.noError(dalutils.ComposeRecordCreate(context.Background(), defDal, module, rec))
return rec