Skip to content

Commit 40f331c

Browse files
committed
Fix unbound reference to clearTimeout
Test code should be able to stuck the global clearTimeout() without breaking AVA.
1 parent 334e15b commit 40f331c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ class Test {
278278
}
279279

280280
clearTimeout() {
281-
clearTimeout(this.timeoutTimer);
281+
nowAndTimers.clearTimeout(this.timeoutTimer);
282282
this.timeoutTimer = null;
283283
}
284284

0 commit comments

Comments
 (0)