test: cleanup test-http-agent-destroyed-socket
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
Changed vars to const / let, functions to arrow functions and use strictEqual and notStrictEqual where appropriate.