[js/web] disable multi-thread test on Node.js in E2E test (#14844)

### Description
disable multi-thread test on Node.js in E2E test.

multi-thread test on Node.js in E2E test never worked, however the CI
does not pick up the error every time. So this became a flaky test case
which sometimes cause a build break.

Disable this test now and should enable it once it's get fixed.
This commit is contained in:
Yulong Wang 2023-02-27 16:01:51 -08:00 committed by GitHub
parent 0be20dc0f6
commit 2d079c6333
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,9 +88,14 @@ function prepareWasmPathOverrideFiles() {
async function testAllNodejsCases() {
await runInShell('node ./node_modules/mocha/bin/mocha ./node-test-main-no-threads.js');
await runInShell('node ./node_modules/mocha/bin/mocha ./node-test-main.js');
await runInShell('node --experimental-wasm-threads ./node_modules/mocha/bin/mocha ./node-test-main-no-threads.js');
await runInShell('node --experimental-wasm-threads ./node_modules/mocha/bin/mocha ./node-test-main.js');
// The multi-threaded export on Node.js is not working. Need a fix. Currently disable these 2 cases temporarily.
// TODO: re-enable the following commented tests once it's fixed
//
// await runInShell('node ./node_modules/mocha/bin/mocha ./node-test-main.js');
// await runInShell('node --experimental-wasm-threads ./node_modules/mocha/bin/mocha ./node-test-main.js');
await runInShell('node ./node_modules/mocha/bin/mocha ./node-test-wasm-path-override-filename.js');
await runInShell('node ./node_modules/mocha/bin/mocha ./node-test-wasm-path-override-prefix.js');
}