diff --git a/test/adapter_httpc_test.exs b/test/adapter_httpc_test.exs index dddb3c3..72c54b9 100644 --- a/test/adapter_httpc_test.exs +++ b/test/adapter_httpc_test.exs @@ -18,14 +18,14 @@ defmodule ExVCR.Adapter.HttpcTest do ExVCR.Actor.CurrentRecorder.default_state() |> ExVCR.Actor.CurrentRecorder.set() end - url = "http://localhost:#{@port}/server" |> to_char_list() + url = "http://localhost:#{@port}/server" |> to_charlist() {:ok, result} = :httpc.request(url) {{_http_version, status_code, _reason_phrase}, _headers, _body} = result assert status_code == 200 end test "passthrough works after cassette has been used" do - url = "http://localhost:#{@port}/server" |> to_char_list() + url = "http://localhost:#{@port}/server" |> to_charlist() use_cassette "httpc_get_localhost" do {:ok, result} = :httpc.request(url) {{_http_version, status_code, _reason_phrase}, _headers, _body} = result diff --git a/test/adapter_ibrowse_test.exs b/test/adapter_ibrowse_test.exs index 6ab436d..bab6684 100644 --- a/test/adapter_ibrowse_test.exs +++ b/test/adapter_ibrowse_test.exs @@ -18,13 +18,13 @@ defmodule ExVCR.Adapter.IBrowseTest do ExVCR.Actor.CurrentRecorder.default_state() |> ExVCR.Actor.CurrentRecorder.set() end - url = "http://localhost:#{@port}/server" |> to_char_list() + url = "http://localhost:#{@port}/server" |> to_charlist() {:ok, status_code, _headers, _body} = :ibrowse.send_req(url, [], :get) assert status_code == '200' end test "passthrough works after cassette has been used" do - url = "http://localhost:#{@port}/server" |> to_char_list() + url = "http://localhost:#{@port}/server" |> to_charlist() use_cassette "ibrowse_get_localhost" do {:ok, status_code, _headers, _body} = :ibrowse.send_req(url, [], :get) assert status_code == '200' diff --git a/test/recorder_httpc_test.exs b/test/recorder_httpc_test.exs index f9b43bf..d863d93 100644 --- a/test/recorder_httpc_test.exs +++ b/test/recorder_httpc_test.exs @@ -117,7 +117,7 @@ defmodule ExVCR.RecorderHttpcTest do ExVCR.Config.response_headers_blacklist(["Date"]) use_cassette "remove_blacklisted_headers" do {:ok, {_, headers, _}} = :httpc.request(@url) - assert headers == [{'server', 'Cowboy'}, {'content-length', '13'}] + assert Enum.sort(headers) == Enum.sort([{'server', 'Cowboy'}, {'content-length', '13'}]) end ExVCR.Config.response_headers_blacklist([]) end