fix(test): ensure calendar_share table in ACL-related eunit suites.
CI / test (push) Failing after 6m13s
CI / deploy-ift (push) Has been skipped
CI / e2e-ift (push) Has been skipped
CI / deploy-stage (push) Has been skipped
CI / e2e-stage (push) Has been skipped

Harden core_calendar_share get/list when table missing. Refs EventHub/EventHubBack#73
This commit is contained in:
2026-08-15 23:48:12 +03:00
parent 331000a464
commit fcb737eb47
8 changed files with 28 additions and 9 deletions
+6
View File
@@ -21,9 +21,15 @@ setup() ->
{attributes, record_info(fields, calendar_specialist)},
{ram_copies, [node()]}
]),
mnesia:create_table(calendar_share, [
{attributes, record_info(fields, calendar_share)},
{ram_copies, [node()]},
{index, [calendar_id, user_id]}
]),
ok.
cleanup(_) ->
mnesia:delete_table(calendar_share),
mnesia:delete_table(calendar_specialist),
mnesia:delete_table(subscription),
mnesia:delete_table(calendar),