1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

test: disable 'test-child-process-ipc-next-tick.js' Node compat test (#25856)

This test is super flaky recently.

See https://github.com/denoland/deno/issues/25855 for more details.
This commit is contained in:
Bartek Iwańczuk 2024-09-25 00:44:34 +01:00 committed by GitHub
parent 36ebc03f17
commit a4f59c7761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 53 deletions

View file

@ -43,7 +43,9 @@
// TODO(littledivy): windows ipc streams not yet implemented
"test-child-process-fork-ref.js",
"test-child-process-fork-ref2.js",
"test-child-process-ipc-next-tick.js",
// TODO(bartlomieju): this test is very flaky on CI
// https://github.com/denoland/deno/issues/25855
// "test-child-process-ipc-next-tick.js",
"test-child-process-ipc.js",
"test-child-process-spawnsync-env.js",
"test-child-process-stdio-inherit.js",

View file

@ -1,52 +0,0 @@
// deno-fmt-ignore-file
// deno-lint-ignore-file
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
// Taken from Node 18.12.1
// This file is automatically generated by `tests/node_compat/runner/setup.ts`. Do not modify this file manually.
'use strict';
// Ignore on Windows.
if (process.platform === 'win32') {
process.exit(0);
}
const common = require('../common');
const assert = require('assert');
const cp = require('child_process');
const NUM_MESSAGES = 10;
const values = [];
for (let i = 0; i < NUM_MESSAGES; ++i) {
values[i] = i;
}
if (process.argv[2] === 'child') {
const received = values.map(() => { return false; });
process.on('uncaughtException', common.mustCall((err) => {
received[err] = true;
const done = received.every((element) => { return element === true; });
if (done)
process.disconnect();
}, NUM_MESSAGES));
process.on('message', (msg) => {
// If messages are handled synchronously, throwing should break the IPC
// message processing.
throw msg;
});
process.send('ready');
} else {
const child = cp.fork(__filename, ['child']);
child.on('message', common.mustCall((msg) => {
assert.strictEqual(msg, 'ready');
values.forEach((value) => {
child.send(value);
});
}));
}