diff --git a/test/plug/conn/query_test.exs b/test/plug/conn/query_test.exs index 35d903ee..a264c963 100644 --- a/test/plug/conn/query_test.exs +++ b/test/plug/conn/query_test.exs @@ -181,7 +181,9 @@ defmodule Plug.Conn.QueryTest do end defp decode_pair(pairs) do - Enum.reduce(Enum.reverse(pairs), %{}, &Plug.Conn.Query.decode_pair(&1, &2)) + pairs + |> Enum.reduce(Plug.Conn.Query.decode_init(), &Plug.Conn.Query.decode_each/2) + |> Plug.Conn.Query.decode_done() end end end