test: refactor test-http-dns-fail
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
refactor test-http-dns-fail.js
- remove counter used to control function execution
- use commont.mustCall to control the function execution
- use const and let instead of var
- use arrow functions