fix(test): ensure calendar_share table in ACL-related eunit suites.
Harden core_calendar_share get/list when table missing. Refs EventHub/EventHubBack#73
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user