test: strengthen test-worker-prof
Force main and worker to stay for some deterministic time Add some more validation check around profile file generation
Refs: https://github.com/nodejs/node/issues/26401
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines