diff --git a/test/seeds_test.exs b/test/seeds_test.exs index f5e38dd..d26ed59 100644 --- a/test/seeds_test.exs +++ b/test/seeds_test.exs @@ -58,6 +58,7 @@ defmodule Mv.SeedsTest do # Seeds already run once in setup_all - count current state {:ok, users_count_1} = Ash.read(Mv.Accounts.User, actor: actor) {:ok, members_count_1} = Ash.read(Mv.Membership.Member, actor: actor) + {:ok, roles_count_1} = Ash.read(Mv.Authorization.Role, domain: Mv.Authorization, authorize?: false) @@ -67,6 +68,7 @@ defmodule Mv.SeedsTest do # Count records again - should be the same (upsert, not duplicate) {:ok, users_count_2} = Ash.read(Mv.Accounts.User, actor: actor) {:ok, members_count_2} = Ash.read(Mv.Membership.Member, actor: actor) + {:ok, roles_count_2} = Ash.read(Mv.Authorization.Role, domain: Mv.Authorization, authorize?: false) diff --git a/test/test_helper.exs b/test/test_helper.exs index 90a8553..537f213 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,4 +1,6 @@ ExUnit.start( - slowest: 10 # shows 10 slowest tests at the end of the test run + # shows 10 slowest tests at the end of the test run + slowest: 10 ) + Ecto.Adapters.SQL.Sandbox.mode(Mv.Repo, :manual)