test: fix flaky test-net-connect-local-error
Fixed test-net-connect-local-error by moving the test from parallel to sequential. Reverted to commit https://github.com/nodejs/node/blob/eeae3bd07145a770209e4899a9d40f67109d3d01/test/parallel/test-net-connect-local-error.js. Added a few more assertions.
Fixes: https://github.com/nodejs/node/issues/12950
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test