Skip to content

Commit 494d33b

Browse files
committed
test_runner: make it compatible with fake timers
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 2204587 commit 494d33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/test_runner/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function stopTest(timeout, signal) {
149149

150150
disposeFunction = () => {
151151
abortListener[SymbolDispose]();
152-
timer[SymbolDispose]();
152+
clearTimeout(timer);
153153
};
154154
}
155155

0 commit comments

Comments
 (0)