From e4467ec4ad2befd88d8a65710a5041bfd47878df Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 23 Mar 2022 15:22:14 +0100 Subject: [PATCH] Fix timeouts in tests by removing async: true for DB tests Signed-off-by: Thomas Citharel --- test/service/activity/comment_test.exs | 2 +- test/service/activity/discussion_test.exs | 2 +- test/service/export/icalendar_test.exs | 2 +- test/service/export/participants/common_test.exs | 2 +- test/test_helper.exs | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/service/activity/comment_test.exs b/test/service/activity/comment_test.exs index 5e4ae6233..c4f457d16 100644 --- a/test/service/activity/comment_test.exs +++ b/test/service/activity/comment_test.exs @@ -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 diff --git a/test/service/activity/discussion_test.exs b/test/service/activity/discussion_test.exs index e36ead866..31305d921 100644 --- a/test/service/activity/discussion_test.exs +++ b/test/service/activity/discussion_test.exs @@ -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 diff --git a/test/service/export/icalendar_test.exs b/test/service/export/icalendar_test.exs index 2d20e449e..2c6dd3676 100644 --- a/test/service/export/icalendar_test.exs +++ b/test/service/export/icalendar_test.exs @@ -1,5 +1,5 @@ defmodule Mobilizon.Service.ICalendarTest do - use Mobilizon.DataCase, async: true + use Mobilizon.DataCase import Mobilizon.Factory diff --git a/test/service/export/participants/common_test.exs b/test/service/export/participants/common_test.exs index df132df5b..830772866 100644 --- a/test/service/export/participants/common_test.exs +++ b/test/service/export/participants/common_test.exs @@ -1,5 +1,5 @@ defmodule Mobilizon.Service.Export.Participants.CommonTest do - use Mobilizon.DataCase, async: true + use Mobilizon.DataCase import Mobilizon.Factory diff --git a/test/test_helper.exs b/test/test_helper.exs index e0baa23b9..732066cd4 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -2,5 +2,3 @@ ExUnit.configure(formatters: [JUnitFormatter, ExUnit.CLIFormatter, ExUnitNotifier]) ExUnit.start() - -Ecto.Adapters.SQL.Sandbox.mode(Mobilizon.Storage.Repo, :manual)