We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b54603 commit e79ad71Copy full SHA for e79ad71
spec/compat_socket_spec.lua
@@ -8,7 +8,7 @@ describe("http.compat.socket module", function()
8
-- in the luasocket example they use 'wrong.host', but 'host' is now a valid TLD.
9
-- use 'wrong.invalid' instead for this test.
10
local r, e = http.request("http://wrong.invalid/")
11
- assert.same(r, nil)
+ assert.same(nil, r)
12
-- in luasocket, the error is documented as "host not found", but we allow something else
13
assert.same("string", type(e))
14
end)
0 commit comments