Skip to content

Commit

Permalink
remove config test that won't work
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoch-cars committed Sep 26, 2023
1 parent a4650cf commit f8d3eef
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/car_req_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -853,26 +853,6 @@ defmodule CarReqTest do
end
end

describe "config" do
setup do
Application.put_env(:req, :legacy_headers_as_lists, true)
end

test "supports headers config option" do
Application.get_env(:req, :legacy_headers_as_lists) |> IO.inspect(label: "legacy_headers_as_lists")

defmodule TestClientLegacyHeaderImpl do
use CarReq
end

secret = "Token Shh, it's a secret"
not_mangled_auth_header = [{"NOTauthorization", secret}]
client = TestClientLegacyHeaderImpl.client(headers: not_mangled_auth_header, auth: secret)
# header is not mangled
assert client.headers == not_mangled_auth_header
end
end

@doc """
Support a custom delay for `:retry_delay`.
`:retry_delay` must be of the form Mod.fun/arity.
Expand Down

0 comments on commit f8d3eef

Please sign in to comment.