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
parent 969cfc78be
commit e4467ec4ad
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
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.Users.User
use Mobilizon.DataCase, async: true
use Mobilizon.DataCase
use Oban.Testing, repo: Mobilizon.Storage.Repo
import Mobilizon.Factory

View File

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

View File

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

View File

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

View File

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