fix(test): sync migration_engine_tests versions with auth_session_device. Refs EventHub/EventHubBack#74
CI / test (push) Successful in 7m23s
CI / deploy-ift (push) Successful in 3m59s
CI / e2e-ift (push) Successful in 1m29s
CI / deploy-stage (push) Successful in 2m15s
CI / e2e-stage (push) Successful in 4m26s

This commit is contained in:
2026-08-16 18:58:54 +03:00
parent 0690020e81
commit ef31e7fb40
+5 -3
View File
@@ -17,7 +17,8 @@
"20260730120000_recurrence_exception_bag", "20260730120000_recurrence_exception_bag",
"20260814193000_waitlist_entry", "20260814193000_waitlist_entry",
"20260815200000_push_subscription", "20260815200000_push_subscription",
"20260815220000_calendar_share_invite" "20260815220000_calendar_share_invite",
"20260816180000_auth_session_device"
]). ]).
setup() -> setup() ->
@@ -41,12 +42,13 @@ cleanup(_) ->
ok. ok.
migration_engine_test_() -> migration_engine_test_() ->
{foreach, fun setup/0, fun cleanup/1, [ %% Disc Mnesia on slow FS (WSL /mnt/c) needs more than eunit's 5s default.
{timeout, 60, {foreach, fun setup/0, fun cleanup/1, [
{"ensure_applied applies pending migrations", fun test_ensure_applied/0}, {"ensure_applied applies pending migrations", fun test_ensure_applied/0},
{"ensure_applied is idempotent", fun test_ensure_applied_idempotent/0}, {"ensure_applied is idempotent", fun test_ensure_applied_idempotent/0},
{"lock record is not treated as migration", fun test_lock_not_applied/0}, {"lock record is not treated as migration", fun test_lock_not_applied/0},
{"join node waits until migrations applied", fun test_join_wait/0} {"join node waits until migrations applied", fun test_join_wait/0}
]}. ]}}.
test_ensure_applied() -> test_ensure_applied() ->
?assertEqual(ok, migration_engine:ensure_applied()), ?assertEqual(ok, migration_engine:ensure_applied()),