Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
Uzlopak committed Sep 5, 2024
commit bb05bd8c5731994a684f1c7a8de5381ca9958f6a
9 changes: 9 additions & 0 deletions lib/util/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,15 @@ module.exports = {
onTick()
onTick()
},
/**
* Clear all FastTimers.
*/
clearAll () {
fastNow = 0
fastTimers.length = 0
clearTimeout(fastNowTimeout)
fastNowTimeout = null
},
/**
* Exporting for testing purposes only.
* Marking as deprecated to discourage any use outside of testing.
Expand Down
Loading