test: refactor test-https-truncate
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test https
Description of change
- use common.mustCall() where appropriate
- Buffer.allocUnsafe() -> Buffer.alloc()
- do crypto check before loading any additional modules
- specify 1ms duration for
setTimeout()