test: fix test-tls-zero-clear-in flakiness
authorSantiago Gimeno <santiago.gimeno@gmail.com>
Tue, 26 Jan 2016 23:44:36 +0000 (00:44 +0100)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit84ead62d8d58d08b8929c6185e9a76dd8f88a502
tree230e0b8baccb3f4d4f5a06a2f1c466118d4730f9
parent12a8427bab5316b44aa6f8026313026e2a76c40a
test: fix test-tls-zero-clear-in flakiness

It can happen that the server-side socket is destroyed before the
client-side socket has gracefully closed, thus causing a 'ECONNRESET'
error in this socket. To solve this, also close gracefully in the server
side too.

PR-URL: https://github.com/nodejs/node/pull/4888
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-tls-zero-clear-in.js