Skip to content

Commit

Permalink
spec/h1_connection_spec: Mark ECONNRESET tests as pending; they don't…
Browse files Browse the repository at this point in the history
… work on OSX
  • Loading branch information
daurnimator committed Dec 16, 2016
1 parent 39f5f7e commit 092f6ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/h1_connection_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ describe("low level http 1 connection operations", function()
assert.same({nil}, {s:peername()})
end
end)
it("persists errors (except ETIMEDOUT) until cleared", function()
-- Pending as ECONNRESET behaviour is unportable
pending("persists errors (except ETIMEDOUT) until cleared", function()
local s, c = new_pair(1.1)
assert.same(ce.ETIMEDOUT, select(3, s:read_request_line(0)))
-- remote end closing with un-read data gives ECONNRESET (only on linux?)
assert(s:write_status_line(1.0, "100", "continue", TEST_TIMEOUT))
assert(s:flush(TEST_TIMEOUT))
c:close()
Expand Down Expand Up @@ -342,7 +342,8 @@ describe("low level http 1 connection operations", function()
s:close()
c:close()
end)
it("handles connection reset", function()
-- Pending as ECONNRESET behaviour is unportable
pending("handles connection reset", function()
local s, c = new_pair(1.1)
assert(s:write_body_plain("something that flushes"))
c:close()
Expand Down Expand Up @@ -395,7 +396,8 @@ describe("low level http 1 connection operations", function()
s:close()
c:close()
end)
it("connection reset", function()
-- Pending as ECONNRESET behaviour is unportable
pending("connection reset", function()
local s, c = new_pair(1.1)
assert(s:write_body_plain("something that flushes"))
c:close()
Expand Down

0 comments on commit 092f6ed

Please sign in to comment.