1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-17 18:49:15 +00:00

mix tests probably shouldn't be async

This commit is contained in:
Floatingghost 2024-05-27 04:03:13 +01:00
parent 73ead8656a
commit 66b3248dd3
6 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.AppTest do defmodule Mix.Tasks.Pleroma.AppTest do
use Pleroma.DataCase, async: true use Pleroma.DataCase, async: false
setup_all do setup_all do
Mix.shell(Mix.Shell.Process) Mix.shell(Mix.Shell.Process)

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.DatabaseTest do defmodule Mix.Tasks.Pleroma.DatabaseTest do
use Pleroma.DataCase, async: true use Pleroma.DataCase, async: false
use Oban.Testing, repo: Pleroma.Repo use Oban.Testing, repo: Pleroma.Repo
alias Pleroma.Activity alias Pleroma.Activity

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.Ecto.RollbackTest do defmodule Mix.Tasks.Pleroma.Ecto.RollbackTest do
use Pleroma.DataCase, async: true use Pleroma.DataCase, async: false
import ExUnit.CaptureLog import ExUnit.CaptureLog
require Logger require Logger

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.EctoTest do defmodule Mix.Tasks.Pleroma.EctoTest do
use ExUnit.Case, async: true use ExUnit.Case, async: false
test "raise on bad path" do test "raise on bad path" do
assert_raise RuntimeError, ~r/Could not find migrations directory/, fn -> assert_raise RuntimeError, ~r/Could not find migrations directory/, fn ->

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.EmojiTest do defmodule Mix.Tasks.Pleroma.EmojiTest do
use ExUnit.Case, async: true use ExUnit.Case, async: false
import ExUnit.CaptureIO import ExUnit.CaptureIO
import Tesla.Mock import Tesla.Mock

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only # SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Upload.Filter.Exiftool.ReadDescriptionTest do defmodule Pleroma.Upload.Filter.Exiftool.ReadDescriptionTest do
use Pleroma.DataCase, async: true use Pleroma.DataCase, async: false
alias Pleroma.Upload.Filter alias Pleroma.Upload.Filter
@uploads %Pleroma.Upload{ @uploads %Pleroma.Upload{