diff options
author | 2023-07-28 16:59:17 -0700 | |
---|---|---|
committer | 2023-07-28 16:59:46 -0700 | |
commit | 97009a49bddd32a1b6875666739445fd05a8fddf (patch) | |
tree | ee77540100c7ad6cc4334c35b276073e61bfc98b /test/js/node/harness.ts | |
parent | d432448ac81b1419a1307d24509ab91a65779205 (diff) | |
download | bun-97009a49bddd32a1b6875666739445fd05a8fddf.tar.gz bun-97009a49bddd32a1b6875666739445fd05a8fddf.tar.zst bun-97009a49bddd32a1b6875666739445fd05a8fddf.zip |
Mark broken test as todo
Diffstat (limited to '')
-rw-r--r-- | test/js/node/harness.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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] : []); |