diff --git a/spec/h1_connection_spec.lua b/spec/h1_connection_spec.lua index 7f3c4246..fa1d0019 100644 --- a/spec/h1_connection_spec.lua +++ b/spec/h1_connection_spec.lua @@ -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() @@ -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() @@ -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()