fix(test): drop redundant user.email index setup
CI / test (push) Successful in 7m8s
CI / deploy-ift (push) Successful in 2m53s
CI / e2e-ift (push) Successful in 12m1s
CI / deploy-stage (push) Successful in 2m18s
CI / e2e-stage (push) Successful in 1m18s

ensure_tables already adds the email index; a second add_table_index
aborted with {already_exists,user,3} and failed the suite setup.
This commit is contained in:
2026-08-04 10:46:32 +03:00
parent 72bc440049
commit c89d08968d
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -6,12 +6,8 @@
setup() -> setup() ->
eh_test_support:start_mnesia(), eh_test_support:start_mnesia(),
%% email index comes from eh_test_support:ensure_indexes/1
eh_test_support:ensure_tables(?TABLES), eh_test_support:ensure_tables(?TABLES),
case mnesia:add_table_index(user, email) of
{atomic, ok} -> ok;
{aborted, {already_exists, user, email}} -> ok;
{aborted, Reason} -> error({add_index_failed, Reason})
end,
ok. ok.
cleanup(_) -> cleanup(_) ->
+1 -5
View File
@@ -12,12 +12,8 @@
setup() -> setup() ->
eh_test_support:start_mnesia(), eh_test_support:start_mnesia(),
%% email index comes from eh_test_support:ensure_indexes/1
eh_test_support:ensure_tables(?TABLES), eh_test_support:ensure_tables(?TABLES),
case mnesia:add_table_index(user, email) of
{atomic, ok} -> ok;
{aborted, {already_exists, user, email}} -> ok;
{aborted, Reason} -> error({add_index_failed, Reason})
end,
ok. ok.
cleanup(_) -> cleanup(_) ->