mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: deflake test-tls-socket-close
Move the check for the destroyed state of the remote socket to the inner `setImmediate()`. Refs: https://github.com/nodejs/node/pull/49327#issuecomment-1712525257 PR-URL: https://github.com/nodejs/node/pull/49575 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
2a14a79c99
commit
ccf46ba0f5
@ -44,9 +44,9 @@ function connectClient(server) {
|
||||
|
||||
setImmediate(() => {
|
||||
assert.strictEqual(netSocket.destroyed, true);
|
||||
assert.strictEqual(clientTlsSocket.destroyed, true);
|
||||
|
||||
setImmediate(() => {
|
||||
assert.strictEqual(clientTlsSocket.destroyed, true);
|
||||
assert.strictEqual(serverTlsSocket.destroyed, true);
|
||||
|
||||
tlsServer.close();
|
||||
|
Loading…
Reference in New Issue
Block a user