From 59ddb12aa3f402786aac1d98f4170384731b91dc Mon Sep 17 00:00:00 2001 From: oneofthezombies Date: Tue, 13 Feb 2024 04:55:03 +0900 Subject: [PATCH] test: comment out console log --- crates/libs/kill_tree/tests/test.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/libs/kill_tree/tests/test.rs b/crates/libs/kill_tree/tests/test.rs index b816634..c1ff8d2 100644 --- a/crates/libs/kill_tree/tests/test.rs +++ b/crates/libs/kill_tree/tests/test.rs @@ -2,7 +2,7 @@ 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() @@ -10,9 +10,10 @@ fn get_node_script_infinite() -> 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) => {