test: refactor test-http-agent-timeout-option (again)
There is no need to establish a TCP connection. It is sufficient to
test that the listener that forwards the 'timeout'
event from the
socket to the ClientRequest
instance is added to the socket.
Refs: https://github.com/nodejs/node/pull/25854#issuecomment-459941564
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines