Skip to content

Add artificial clock advancement #3356

@dawmd

Description

@dawmd

Consider implementing a mechanism to advance clocks by a given amount of time, perhaps followed by triggering timeouts.

This could be useful in testing and provide a reliable way to trigger time-reliant events, e.g. condition variables, timers, etc. Currently, testing timeouts and the like is often problematic and requires loops with retries as it's not deterministic when exactly an event will occur.

The idea was suggested by @gusev-p in scylladb/scylladb#28526 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions