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>
Mon, 1 Jul 2013 22:04:56 +0000 (15:04 -0700)
commit6f8ddf375950f506f26e143900355871416a03e6
tree55531b6096bf38eec29451f09020cc30dcf0b36e
parent9b09c9eedd74589111b9893f7b4154c45e027fc7
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