aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-28 16:59:17 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-28 16:59:46 -0700
commit97009a49bddd32a1b6875666739445fd05a8fddf (patch)
treeee77540100c7ad6cc4334c35b276073e61bfc98b
parentd432448ac81b1419a1307d24509ab91a65779205 (diff)
downloadbun-97009a49bddd32a1b6875666739445fd05a8fddf.tar.gz
bun-97009a49bddd32a1b6875666739445fd05a8fddf.tar.zst
bun-97009a49bddd32a1b6875666739445fd05a8fddf.zip
Mark broken test as todo
-rw-r--r--test/js/node/child_process/child_process-node.test.js3
-rw-r--r--test/js/node/harness.ts3
2 files changed, 5 insertions, 1 deletions
diff --git a/test/js/node/child_process/child_process-node.test.js b/test/js/node/child_process/child_process-node.test.js
index 34f6fdc83..ce1e68e9f 100644
--- a/test/js/node/child_process/child_process-node.test.js
+++ b/test/js/node/child_process/child_process-node.test.js
@@ -609,7 +609,8 @@ describe("fork", () => {
}),
);
});
- it("Test aborting a cp before close but after exit", done => {
+ // This event doesn't run
+ it.todo("Test aborting a cp before close but after exit", done => {
const { mustCall, mustNotCall } = createCallCheckCtx(done);
const ac = new AbortController();
const { signal } = ac;
diff --git a/test/js/node/harness.ts b/test/js/node/harness.ts
index bd34f541a..fcc74364b 100644
--- a/test/js/node/harness.ts
+++ b/test/js/node/harness.ts
@@ -107,6 +107,9 @@ export function createTest(path: string) {
}
function mustNotCall(reason: string = "function should not have been called", optionalCb?: (err?: any) => void) {
+ const localDone = createDone();
+ timers.push(setTimeout(() => localDone(), 200));
+
return () => {
closeTimers();
if (optionalCb) optionalCb.apply(undefined, reason ? [reason] : []);