Fix timeouts in tests by removing async: true for DB tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-03-23 15:22:14 +01:00 committed by tykayn
parent c1ed270aa6
commit 9c53888c30
5 changed files with 4 additions and 6 deletions

View File

@ -11,7 +11,7 @@ defmodule Mobilizon.Service.Activity.CommentTest do
alias Mobilizon.Service.Workers.LegacyNotifierBuilder alias Mobilizon.Service.Workers.LegacyNotifierBuilder
alias Mobilizon.Users.User alias Mobilizon.Users.User
use Mobilizon.DataCase, async: true use Mobilizon.DataCase
use Oban.Testing, repo: Mobilizon.Storage.Repo use Oban.Testing, repo: Mobilizon.Storage.Repo
import Mobilizon.Factory import Mobilizon.Factory

View File

@ -10,7 +10,7 @@ defmodule Mobilizon.Service.Activity.DiscussionTest do
alias Mobilizon.Service.Workers.{ActivityBuilder, LegacyNotifierBuilder} alias Mobilizon.Service.Workers.{ActivityBuilder, LegacyNotifierBuilder}
alias Mobilizon.Users.User alias Mobilizon.Users.User
use Mobilizon.DataCase, async: true use Mobilizon.DataCase
use Oban.Testing, repo: Mobilizon.Storage.Repo use Oban.Testing, repo: Mobilizon.Storage.Repo
import Mobilizon.Factory import Mobilizon.Factory

View File

@ -1,5 +1,5 @@
defmodule Mobilizon.Service.ICalendarTest do defmodule Mobilizon.Service.ICalendarTest do
use Mobilizon.DataCase, async: true use Mobilizon.DataCase
import Mobilizon.Factory import Mobilizon.Factory

View File

@ -1,5 +1,5 @@
defmodule Mobilizon.Service.Export.Participants.CommonTest do defmodule Mobilizon.Service.Export.Participants.CommonTest do
use Mobilizon.DataCase, async: true use Mobilizon.DataCase
import Mobilizon.Factory import Mobilizon.Factory

View File

@ -2,5 +2,3 @@
ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter, ExUnitNotifier]) ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter, ExUnitNotifier])
ExUnit.start() ExUnit.start()
Ecto.Adapters.SQL.Sandbox.mode(Mobilizon.Storage.Repo, :manual)