Skip to content

Commit

Permalink
improve host definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skie authored and edgurgel committed Apr 18, 2018
1 parent 2c0eb03 commit e3b1e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/httpoison_base_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ defmodule HTTPoisonBaseTest do
[:post, "http://localhost", [], "body", [
socks5_pass: "secret",
socks5_user: "user",
proxy: {:socks5, 'http://localhost', 1080}
proxy: {:socks5, 'localhost', 1080}
]],
{:ok, 200, "headers", :client}}])
expect(:hackney, :body, 1, {:ok, "response"})

assert HTTPoison.post!("localhost", "body", [], proxy: {:socks5, 'http://localhost', 1080}, socks5_user: "user", socks5_pass: "secret") ==
assert HTTPoison.post!("localhost", "body", [], proxy: {:socks5, 'localhost', 1080}, socks5_user: "user", socks5_pass: "secret") ==
%HTTPoison.Response{ status_code: 200,
headers: "headers",
body: "response",
Expand Down

0 comments on commit e3b1e20

Please sign in to comment.