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).
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).