test: refactor test-tls-timeout-server-2
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
- Use
common.mustCall
for all callbacks - Use
const
instead ofvar