test: fix http-many-ended-pipelines flakiness
authorSantiago Gimeno <santiago.gimeno@gmail.com>
Thu, 26 Nov 2015 21:34:11 +0000 (22:34 +0100)
committerMyles Borins <mborins@us.ibm.com>
Tue, 19 Jan 2016 19:52:16 +0000 (11:52 -0800)
commit2ee7853bb71fb6ad8f5ed4cb470c334f33bdfd51
tree54acb0eafa85d571b1508223585025c6e5784d97
parent86b47e8dc012b38460e6950a63786c5198552afb
test: fix http-many-ended-pipelines flakiness

It can happen that the HTTP connection is closed before the server has received
all the requests, thus the server close condition is never reached. To solve
this, close the server when the socket is fully closed.

PR-URL: https://github.com/nodejs/node/pull/4041
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
test/parallel/test-http-many-ended-pipelines.js