Skip to content

Commit

Permalink
Fix Phoenix.ChannelTest.connect/3 warning (#2701)
Browse files Browse the repository at this point in the history
brought about by:
phoenixframework/phoenix#5488

Removing the 3rd argument is backwards compatible
since `connect_info` still defaults to `%{}`.
  • Loading branch information
aptinio committed Jun 19, 2023
1 parent 87ae679 commit 53a79b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_live_view/test/live_view_test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ defmodule Phoenix.LiveViewTest do
defmacro file_input(view, form_selector, name, entries) do
quote bind_quoted: [view: view, selector: form_selector, name: name, entries: entries] do
require Phoenix.ChannelTest
builder = fn -> Phoenix.ChannelTest.connect(Phoenix.LiveView.Socket, %{}, %{}) end
builder = fn -> Phoenix.ChannelTest.connect(Phoenix.LiveView.Socket, %{}) end
Phoenix.LiveViewTest.__file_input__(view, selector, name, entries, builder)
end
end
Expand Down

0 comments on commit 53a79b5

Please sign in to comment.