This repository was archived by the owner on May 13, 2019. It is now read-only.
This repository was archived by the owner on May 13, 2019. It is now read-only.
Timers and tests #27
Closed
Description
What should be the general things we want to happen with timers in tests?
- Recommend against using timers if at all possible. (Obviously, if the test is specifically testing timers, then using them is fine.)
- Do we distinguish between
setTimeout()
,setImmediate()
, andprocess.nextTick()
? I think onlysetTimeout()
is generally problematic. The other two are usually fine. - Tests that rely on timers should go in
sequential
and not inparallel
.
What else?
Metadata
Metadata
Assignees
Labels
No labels