Fix compatibility with Elixir v1.10
This commit is contained in:
parent
b12f306473
commit
2ddd1bb088
3 changed files with 2 additions and 3 deletions
|
@ -6,6 +6,6 @@ defmodule Pleroma.RuntimeTest do
|
||||||
use ExUnit.Case, async: true
|
use ExUnit.Case, async: true
|
||||||
|
|
||||||
test "it loads custom runtime modules" do
|
test "it loads custom runtime modules" do
|
||||||
assert Code.ensure_compiled?(RuntimeModule)
|
assert {:module, RuntimeModule} == Code.ensure_compiled(RuntimeModule)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,7 +19,7 @@ def request(
|
||||||
else
|
else
|
||||||
error ->
|
error ->
|
||||||
with {:error, message} <- error do
|
with {:error, message} <- error do
|
||||||
Logger.warn(message)
|
Logger.warn(to_string(message))
|
||||||
end
|
end
|
||||||
|
|
||||||
{_, _r} = error
|
{_, _r} = error
|
||||||
|
|
|
@ -7,7 +7,6 @@ defmodule Pleroma.Web.MastodonAPI.SuggestionControllerTest do
|
||||||
|
|
||||||
alias Pleroma.Config
|
alias Pleroma.Config
|
||||||
|
|
||||||
import ExUnit.CaptureLog
|
|
||||||
import Pleroma.Factory
|
import Pleroma.Factory
|
||||||
import Tesla.Mock
|
import Tesla.Mock
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue