test: fix test-heapdump-worker
This test was broken by de2c68c7.
Refs: https://github.com/nodejs/node/pull/31386
/cc @trott
Also, this fix is almost identical to ed60e863 … maybe we should have at least one platform/job running the full test suite in CI?
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines