Skip to content

Commit 59ddb12

Browse files
committed
test: comment out console log
1 parent 5f9e9c5 commit 59ddb12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/libs/kill_tree/tests/test.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ use std::{process::Command, sync::mpsc, thread, time::Duration};
22

33
fn get_node_script_infinite() -> String {
44
r"
5-
console.log('infinite. pid:', process.pid);
5+
// console.log('infinite. pid:', process.pid);
66
setInterval(() => {}, 1000);
77
"
88
.to_string()
99
}
1010

1111
fn get_node_script_spawn_infinite_child() -> String {
1212
r#"
13-
console.log('spawn child. pid:', process.pid);
13+
// console.log('spawn child. pid:', process.pid);
1414
const { spawn } = require('child_process');
15-
const child = spawn('node', ['-e', 'console.log("infinite. pid:", process.pid);setInterval(() => {}, 1000);'], {
15+
// const child = spawn('node', ['-e', 'console.log("infinite. pid:", process.pid);setInterval(() => {}, 1000);'], {
16+
const child = spawn('node', ['-e', 'setInterval(() => {}, 1000);'], {
1617
stdio: 'inherit',
1718
});
1819
child.on('exit', (code, signal) => {

0 commit comments

Comments
 (0)