Skip to content

Commit

Permalink
revert test error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwencool committed Jun 29, 2016
1 parent 06c4f94 commit a0a7aa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/maxwell/adapter/hackney_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ defmodule Maxwell.HackneyTest do
assert data.body["data"] == ""
end

test "http url connect timeout" do
test "http url not exist" do
data =
[url: "notexist", opts: [connect_timeout: 1000]]
[url: "notexist", opts: [connect_timeout: 10000]]
|> Client.get
assert data == {:error, :connect_timeout}
assert data == {:error, :nxdomain}
end

test "Head without body(test hackney.ex return {:ok, status, header})" do
Expand Down

0 comments on commit a0a7aa6

Please sign in to comment.