Skip to content

Fake time to enable better state machine testing #53

@crclark

Description

@crclark

For the lease tests with quickcheck-statemachine, we have a PassTime command that simply sleeps to ensure time passes and the leases time out. This is obviously slow. If we could inject a fake provider of time into the system, we could advance the clock as we please and the tests would run faster. They would also be more amenable to concurrent testing of race conditions.

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