test: make sure test function resolves in test-worker-debug
Use the common .then(common.mustCall())
check to verify that.
Also, we should not use process.abort()
in test/parallel
; if
the test fails, that leaves core dumps lying around on POSIX systems.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines