The issue arises from the `getFreeCallCount()` function yielding the initial value of 0. Upon instantiation of the `Worker` object, it increments to 1. In the case of this flaky test, if the creation of the `Worker` object is faster, the subsequent `getFreeCallCount()` call always returns 1 instead of the expected 0. Fixes: https://github.com/nodejs/node/issues/51003 PR-URL: https://github.com/nodejs/node/pull/51013 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> |
||
|---|---|---|
| .. | ||
| async-cleanup-hook | ||
| async-hello-world | ||
| async-hooks-id | ||
| async-resource | ||
| buffer-free-callback | ||
| callback-scope | ||
| cppgc-object | ||
| dlopen-ping-pong | ||
| errno-exception | ||
| force-context-aware | ||
| heap-profiler | ||
| hello-world | ||
| hello-world-function-export | ||
| load-long-path | ||
| make-callback | ||
| make-callback-domain-warning | ||
| make-callback-recurse | ||
| new-isolate-addon | ||
| new-target | ||
| no-addons | ||
| node-module-version | ||
| non-node-context | ||
| not-a-binding | ||
| null-buffer-neuter | ||
| openssl-binding | ||
| openssl-client-cert-engine | ||
| openssl-key-engine | ||
| openssl-providers | ||
| openssl-test-engine | ||
| parse-encoding | ||
| register-signal-handler | ||
| repl-domain-abort | ||
| report-api | ||
| report-fatalerror | ||
| request-interrupt | ||
| stringbytes-external-exceed-max | ||
| symlinked-module | ||
| uv-handle-leak | ||
| worker-addon | ||
| worker-buffer-callback | ||
| zlib-binding | ||
| .gitignore | ||
| addons.status | ||
| common.gypi | ||
| testcfg.py | ||