ソースを参照

Tests: More test fixes.

2151-conversation-stream
lain 3年前
コミット
b17c36c45a
3個のファイルの変更7行の追加2行の削除
  1. +1
    -1
      test/mix/tasks/pleroma/ecto/migrate_test.exs
  2. +5
    -1
      test/mix/tasks/pleroma/instance_test.exs
  3. +1
    -0
      test/pleroma/application_requirements_test.exs

+ 1
- 1
test/mix/tasks/pleroma/ecto/migrate_test.exs ファイルの表示

@@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-onl

defmodule Mix.Tasks.Pleroma.Ecto.MigrateTest do
use Pleroma.DataCase, async: true
use Pleroma.DataCase
import ExUnit.CaptureLog
require Logger



+ 5
- 1
test/mix/tasks/pleroma/instance_test.exs ファイルの表示

@@ -3,7 +3,8 @@
# SPDX-License-Identifier: AGPL-3.0-only

defmodule Mix.Tasks.Pleroma.InstanceTest do
use Pleroma.DataCase, async: true
# Modifies the Application Environment, has to stay synchronous.
use Pleroma.DataCase

setup do
File.mkdir_p!(tmp_path())
@@ -17,6 +18,9 @@ defmodule Mix.Tasks.Pleroma.InstanceTest do
end
end)

# Is being modified by the mix task.
clear_config([:instance, :static_dir])

:ok
end



+ 1
- 0
test/pleroma/application_requirements_test.exs ファイルの表示

@@ -15,6 +15,7 @@ defmodule Pleroma.ApplicationRequirementsTest do
describe "check_repo_pool_size!/1" do
test "raises if the pool size is unexpected" do
clear_config([Pleroma.Repo, :pool_size], 11)
clear_config([:dangerzone, :override_repo_pool_size], false)

assert_raise Pleroma.ApplicationRequirements.VerifyError,
"Repo.pool_size different than recommended value.",


読み込み中…
キャンセル
保存