Skip to content

Expiring method causing test issues #30

@download13

Description

@download13

The method used for expiring values seems to be causing some issues. A lot of care must be taken to make things like setInteval and setTimeout not cause problems with the fake timers provided by sinon.

I propose a change to a lazy expiration system. It should solve the problems with sinon, and the problem of values living up to 100 milliseconds after they were supposed to expire. Plus it would allow the deletion of a large chunk of complicated code from the RedisMock constructor.

I can send a pull request if nobody else wants to do it just now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions