Compatibility with phoenix_pubsub 2.0.0
This commit is contained in:
parent
70880d54f8
commit
8156940a49
|
@ -202,7 +202,10 @@ defp dont_run_in_test(_) do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp chat_child(true) do
|
defp chat_child(true) do
|
||||||
[Pleroma.Web.ChatChannel.ChatChannelState]
|
[
|
||||||
|
Pleroma.Web.ChatChannel.ChatChannelState,
|
||||||
|
{Phoenix.PubSub, [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]}
|
||||||
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
defp chat_child(_), do: []
|
defp chat_child(_), do: []
|
||||||
|
|
|
@ -177,7 +177,7 @@ def router do
|
||||||
def channel do
|
def channel do
|
||||||
quote do
|
quote do
|
||||||
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
|
||||||
use Phoenix.Channel
|
import Phoenix.Channel
|
||||||
import Pleroma.Web.Gettext
|
import Pleroma.Web.Gettext
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -22,7 +22,7 @@ defmodule Pleroma.Web.ChannelCase do
|
||||||
using do
|
using do
|
||||||
quote do
|
quote do
|
||||||
# Import conveniences for testing with channels
|
# Import conveniences for testing with channels
|
||||||
use Phoenix.ChannelTest
|
import Phoenix.ChannelTest
|
||||||
use Pleroma.Tests.Helpers
|
use Pleroma.Tests.Helpers
|
||||||
|
|
||||||
# The default endpoint for testing
|
# The default endpoint for testing
|
||||||
|
|
Loading…
Reference in a new issue