Skip to content

Commit

Permalink
[Format] Fix formatting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeMilan authored and edgurgel committed May 3, 2023
1 parent 6fe3b1c commit b2d4438
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/httpoison_base_test.exs
Expand Up @@ -711,13 +711,14 @@ defmodule HTTPoisonBaseTest do
expect(:hackney, :body, fn _, _ -> {:ok, "response"} end)

request = %HTTPoison.Request{url: "http://localhost"}

assert ExampleRequest.request!(request) ==
%HTTPoison.Response{
status_code: 200,
headers: "headers",
body: "response",
request_url: "http://localhost",
request: request,
request: request
}
end

Expand All @@ -731,6 +732,7 @@ defmodule HTTPoisonBaseTest do
HTTPoison.request!(:get, "http://localhost")
end

assert HTTPoison.request(:get, "http://localhost") == {:error, %HTTPoison.Error{reason: reason}}
assert HTTPoison.request(:get, "http://localhost") ==
{:error, %HTTPoison.Error{reason: reason}}
end
end

0 comments on commit b2d4438

Please sign in to comment.