test: fix flaky test-http-client-get-url
Fixed test-http-client-get-url
by waiting on HTTP GET requests to finish before closing the server.
Fixes: https://github.com/nodejs/node/issues/13507
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test