test: use emitter.listenerCount() in test-http-connect
Use emitter.listenerCount()
instead of the length
property of the
array returned by emitter.listeners()
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines