aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/spawned-child.js
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-01-23 15:59:45 -0800
committerGravatar GitHub <noreply@github.com> 2023-01-23 15:59:45 -0800
commit79c0b614ee04d06d9565cd52450b0de1f58fa87e (patch)
tree3bd01e49d3f6ecb3e04bf3ff71552b5c14bf0298 /test/bun.js/spawned-child.js
parentf5cda8ff1871571e3a6e655326fcda56e65e0dfb (diff)
downloadbun-79c0b614ee04d06d9565cd52450b0de1f58fa87e.tar.gz
bun-79c0b614ee04d06d9565cd52450b0de1f58fa87e.tar.zst
bun-79c0b614ee04d06d9565cd52450b0de1f58fa87e.zip
fix child process node test hang (#1884)
* fix test hang from skipped tests * add error target
Diffstat (limited to 'test/bun.js/spawned-child.js')
-rw-r--r--test/bun.js/spawned-child.js4
1 files changed, 3 insertions, 1 deletions
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
}