The test has been flaking due to either timeout or calling uv_async_send on a closing/closed handle. As the test squeezes too many independent test cases in one file, split it up to avoid timing out on slower machines and aid debugging. PR-URL: https://github.com/nodejs/node/pull/60491 Refs: https://github.com/nodejs/reliability/blob/main/reports/2025-10-29.md Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
9 lines
441 B
JavaScript
9 lines
441 B
JavaScript
// Test fixture that source phase imports don't execute
|
|
import { strictEqual, rejects } from 'node:assert';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { pathToFileURL } from 'node:url';
|
|
import source mod from './unimportable.wasm';
|
|
|
|
strictEqual(mod instanceof WebAssembly.Module, true);
|
|
const unimportableUrl = pathToFileURL(fileURLToPath(new URL('./unimportable.wasm', import.meta.url))).href;
|
|
await rejects(import(unimportableUrl));
|