Skip to content

Commit

Permalink
test: comment out console log
Browse files Browse the repository at this point in the history
  • Loading branch information
oneofthezombies committed Feb 12, 2024
1 parent 5f9e9c5 commit 59ddb12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/libs/kill_tree/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ use std::{process::Command, sync::mpsc, thread, time::Duration};

fn get_node_script_infinite() -> String {
r"
console.log('infinite. pid:', process.pid);
// console.log('infinite. pid:', process.pid);
setInterval(() => {}, 1000);
"
.to_string()
}

fn get_node_script_spawn_infinite_child() -> String {
r#"
console.log('spawn child. pid:', process.pid);
// console.log('spawn child. pid:', process.pid);
const { spawn } = require('child_process');
const child = spawn('node', ['-e', 'console.log("infinite. pid:", process.pid);setInterval(() => {}, 1000);'], {
// const child = spawn('node', ['-e', 'console.log("infinite. pid:", process.pid);setInterval(() => {}, 1000);'], {
const child = spawn('node', ['-e', 'setInterval(() => {}, 1000);'], {
stdio: 'inherit',
});
child.on('exit', (code, signal) => {
Expand Down

0 comments on commit 59ddb12

Please sign in to comment.