Skip to content
Snippets Groups Projects
Commit 509e7504 authored by khatskevich's avatar khatskevich Committed by Roman Tsisyk
Browse files

http: speed up the test case

Lookup for http://mailru takes 10 sec in my environment.
This small change improves speed drastically.
parent 15fcc1fc
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ test:test("errors", function(test)
test:ok(not status and string.find(json.encode(err),
"Unsupported protocol"),
"POST: exception on bad protocol")
local r = http:get("http://mailru")
local r = http:get("http://do_not_exist_8ffad33e0cb01e6a01a03d00089e71e5b2b7e9930dfcba.ru")
test:is(r.status, 595, "GET: response on bad url")
end)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment