Fix compatibility with Elixir v1.10

This commit is contained in:
Egor Kislitsyn 2020-01-28 18:23:59 +04:00
父節點 b12f306473
當前提交 2ddd1bb088
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 1B49CB15B71E7805
共有 3 個檔案被更改,包括 2 行新增3 行删除

查看文件

@ -6,6 +6,6 @@ defmodule Pleroma.RuntimeTest do
use ExUnit.Case, async: true
test "it loads custom runtime modules" do
assert Code.ensure_compiled?(RuntimeModule)
assert {:module, RuntimeModule} == Code.ensure_compiled(RuntimeModule)
end
end

查看文件

@ -19,7 +19,7 @@ defmodule HttpRequestMock do
else
error ->
with {:error, message} <- error do
Logger.warn(message)
Logger.warn(to_string(message))
end
{_, _r} = error

查看文件

@ -7,7 +7,6 @@ defmodule Pleroma.Web.MastodonAPI.SuggestionControllerTest do
alias Pleroma.Config
import ExUnit.CaptureLog
import Pleroma.Factory
import Tesla.Mock