test: deflake test-http-dump-req-when-res-ends.js
On some platforms the 'end'
event might not be emitted because the
socket could be destroyed by the other peer while the client is still
sending the data triggering an error. Use the 'close'
event instead.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines