Skip to content

Commit

Permalink
Revert "Stop using decode_pair/2 in tests"
Browse files Browse the repository at this point in the history
We still need to test the old implementation.
  • Loading branch information
josevalim committed Jan 16, 2024
1 parent 67cbc7c commit 5e98309
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/plug/conn/query_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ defmodule Plug.Conn.QueryTest do
end

defp decode_pair(pairs) do
pairs
|> Enum.reduce(Plug.Conn.Query.decode_init(), &Plug.Conn.Query.decode_each/2)
|> Plug.Conn.Query.decode_done()
Enum.reduce(Enum.reverse(pairs), %{}, &Plug.Conn.Query.decode_pair(&1, &2))

Check warning on line 184 in test/plug/conn/query_test.exs

View workflow job for this annotation

GitHub Actions / test (1.10.4, 21.3, false)

Plug.Conn.Query.decode_pair/2 is deprecated. Use decode_init/0, decode_each/2, and decode_done/2 instead
end
end
end

0 comments on commit 5e98309

Please sign in to comment.