Commit a681d95a authored by Luigi Pinca's avatar Luigi Pinca Committed by Daniel Bevenius
Browse files

test: fix flaky test-tls-multiple-cas-as-string

The following error is emitted in a nondeterministic way on the server
side socket on macOS:

```
events.js:173
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event at:
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)
```

Prevent the error from being emitted by moving the `socket.end()` call
to the client. Also, run tests in parallel and use `common.mustCall()`.

PR-URL: https://github.com/nodejs/node/pull/27569


Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarSam Roberts <vieuxtech@gmail.com>
parent e006a854
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment