test: fix http-incoming-pipelined-socket-destroy
authorAlexis Campailla <alexis@janeasystems.com>
Wed, 22 Jan 2014 16:28:24 +0000 (08:28 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Thu, 23 Jan 2014 20:42:56 +0000 (12:42 -0800)
commit42cd468901b8e5b0411761c43ab8fed06d241d51
treee61861c2e05a27eee30c13aa5b736ad24db485ad
parent5d4f4ee310eab1f82d99caefee4c4c60a48620ff
test: fix http-incoming-pipelined-socket-destroy

The test was calling server.close() after write on the socket
had completed. However the fact that the write had completed was
not valid indication that the server had received the data.

This would result in a premutaure closing of the server and
an ECONNRESET event on the client.
test/simple/test-http-incoming-pipelined-socket-destroy.js