Fix broken tests (add rec-mod link)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user