fix(test): sync migration_engine_tests versions with auth_session_device. Refs EventHub/EventHubBack#74
This commit is contained in:
@@ -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()),
|
||||||
|
|||||||
Reference in New Issue
Block a user