If server crashes during pebble server tests; Node Pebble does not destroy the process, leading to an error on next run
Output:
Auto Encrypt
✔ AutoEncrypt.https is an alias for AutoEncrypt
✔ creating server with listener as only argument works as expected
✔ attempt to instantiate AutoEncrypt static class throws as expected
✔ https.Server instance returned as expected
✔ inspection string is as expected
✔ correct error returned during connection attempt when server is busy provisioning initial certificate
╔══════════════════════════════════════════════════════════════════════════════╗
║ Unhandled rejection (crashing) ║
╚══════════════════════════════════════════════════════════════════════════════╝
Error: socket hang up
at connResetException (internal/errors.js:604:14)
at TLSSocket.socketOnEnd (_http_client.js:460:23)
at TLSSocket.emit (events.js:323:22)
at endReadableNT (_stream_readable.js:1204:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'ECONNRESET'
If you ps aux | grep pebble
on the run before this one, you’ll see the pebble process is still active.