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>
11 lines
412 B
JavaScript
11 lines
412 B
JavaScript
// Test fixture for loading WASM exports
|
|
import { strictEqual, match } from 'node:assert';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { add, addImported } from './simple.wasm';
|
|
import { state } from './wasm-dep.mjs';
|
|
|
|
strictEqual(state, 'WASM Start Executed');
|
|
strictEqual(add(10, 20), 30);
|
|
strictEqual(addImported(0), 42);
|
|
strictEqual(state, 'WASM JS Function Executed');
|
|
strictEqual(addImported(1), 43);
|