test: handle errors correctly in test-gc-http-client-timeout.js
Before this, test-gc-http-client-timeout.js
logs res.resume is not a function
when errors are emitted.
This test sometimes fails on my OSX because getaddrinfo
may return ENOTFOUND
. (The actual uv error code is UV_EAI_NONAME
.)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines