From 79c0b614ee04d06d9565cd52450b0de1f58fa87e Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Mon, 23 Jan 2023 15:59:45 -0800 Subject: fix child process node test hang (#1884) * fix test hang from skipped tests * add error target --- test/bun.js/spawned-child.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/bun.js/spawned-child.js') diff --git a/test/bun.js/spawned-child.js b/test/bun.js/spawned-child.js index d39131933..738d42f7e 100644 --- a/test/bun.js/spawned-child.js +++ b/test/bun.js/spawned-child.js @@ -22,6 +22,8 @@ if (TARGET === "STDIN") { }); } else if (TARGET === "STDOUT") { process.stdout.write("stdout_test"); +} else if (TARGET === "ERROR") { + console.log("oops"); } else { - console.log("unknown target! you messed up..."); + // nothing } -- cgit v1.2.3