test: add net regression test
Ensure that the socket is not destroyed when the 'end' event is emitted
Refs: https://github.com/nodejs/node/pull/32780#issuecomment-612602551
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines