Fix timeouts in tests by removing async: true for DB tests
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
969cfc78be
commit
e4467ec4ad
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user