Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: do not assume tls handshake order
Test assumed that server handshake event happened before client destroys the connection, but that is not guaranteed. Also, the test was closing the TCP connection 3 times, effectively: 1. on the server side, right after TLS connection occurs (if it does) 2. on the client side, internal to tls, when the cert is rejected 3. again on the client side, in the error event which is emitted by the internal tls destroy from 2 This is too often, and the dependency on 1 occuring is fragile. Remove 1 and 3 so that the test will fail unless 2 occurs.
- Loading branch information