Skip to content
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
Closed
@Trott

Description

@Trott

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(), and process.nextTick()? I think only setTimeout() is generally problematic. The other two are usually fine.
  • Tests that rely on timers should go in sequential and not in parallel.

What else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions