test: track callback invocations
Use common.mustCall()
and common.mustNotCall()
to check that
callbacks are invoked the expected number of times in
test-net-listen-shared-ports.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test net