test: fix tls-hello-parser-failure on smartos
authorTimothy J Fontaine <tjfontaine@gmail.com>
Mon, 1 Jul 2013 21:29:15 +0000 (21:29 +0000)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 2 Jul 2013 00:41:38 +0000 (17:41 -0700)
commit4c38742dd8a41f119b7113af6440014e25ae71c2
tree465be127cd6cd0febd2adc4036bfca69fae8a65e
parent16b59cbc74c8fe2f8b30f3af4c2f885b7bfb6030
test: fix tls-hello-parser-failure on smartos

Assert that when the client closes it has seen an error, this prevents
the test from timing out.

Also queue a second write in the case that we were able to send the
buffer before the other side closed the connection.
test/simple/test-tls-hello-parser-failure.js