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)