aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/harness.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/js/node/harness.ts3
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] : []);