diff --git a/test/unit/migration_engine_tests.erl b/test/unit/migration_engine_tests.erl index 49ed456..1cd6f1f 100755 --- a/test/unit/migration_engine_tests.erl +++ b/test/unit/migration_engine_tests.erl @@ -17,7 +17,8 @@ "20260730120000_recurrence_exception_bag", "20260814193000_waitlist_entry", "20260815200000_push_subscription", - "20260815220000_calendar_share_invite" + "20260815220000_calendar_share_invite", + "20260816180000_auth_session_device" ]). setup() -> @@ -41,12 +42,13 @@ cleanup(_) -> ok. 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 is idempotent", fun test_ensure_applied_idempotent/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} - ]}. + ]}}. test_ensure_applied() -> ?assertEqual(ok, migration_engine:ensure_applied()),