Skip to content

Commit 2a6de9f

Browse files
committed
Fix hanging test timer
1 parent cea28f9 commit 2a6de9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function test(o, name, options, fn) {
2424

2525
tests[line] = { fn, line, name }
2626
promise = promise.then(() => Promise.race([
27-
new Promise((resolve, reject) => fn.timer = setTimeout(() => reject('Timed out'), options.timeout || t.timeout)),
27+
new Promise((resolve, reject) => fn.timer = setTimeout(() => reject('Timed out'), options.timeout || t.timeout).unref()),
2828
fn()
2929
]))
3030
.then((x) => {

0 commit comments

Comments
 (0)