test: fix timeouts when running worker tests with `--worker`
These tests have been added after the original workers PR and
time out when run inside a worker by themselves.
This is needed for enabling --worker
tests in our regular CI.
Refs: https://github.com/nodejs/build/issues/1318
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines