diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-02-01 12:02:44 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-02-06 15:18:22 -0800 |
commit | 1f4c5bdbcab0ec89cabdc3d598d6bf2ab4f1894c (patch) | |
tree | ea7d3bc251936fd3b9cc83af1325821f196c66cf /test/parallel/test-tls-client-getephemeralkeyinfo.js | |
parent | 1bd42833d7ac3b5cc9737c6cc7dc8d69a4102ba5 (diff) | |
download | android-node-v8-1f4c5bdbcab0ec89cabdc3d598d6bf2ab4f1894c.tar.gz android-node-v8-1f4c5bdbcab0ec89cabdc3d598d6bf2ab4f1894c.tar.bz2 android-node-v8-1f4c5bdbcab0ec89cabdc3d598d6bf2ab4f1894c.zip |
test: send a bad record only after connection done
Connection is known to be completely setup only after data has
exchanged, so wait unil data echo before sending a bad record.
Otherwise, the bad record could interrupt completion of the server's
handshake, and whether the error is emitted on the connection or server
is a matter of timing.
Also, assert that server errors do not occur. 'error' would crash node
with and unhandled event, but 'tlsClientError' is ignored by default.
PR-URL: https://github.com/nodejs/node/pull/25508
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-client-getephemeralkeyinfo.js')
0 files changed, 0 insertions, 0 deletions