Expand description
Functionality for simulating the passage of time in unit tests.
We do this by providing MockSleepProvider, a “SleepProvider”
instance that can simulate timeouts and retries without requiring
the actual system clock to advance.
§Deprecated
This mock time facility has some limitations.
See MockSleepProvider for more information.
Use MockRuntime for new tests.
Structs§
- Mock
Sleep Provider Deprecated - A dummy
SleepProviderinstance for testing. - Sleep
Entry 🔒 - An entry telling us when to wake which future up.
- Sleep
Schedule 🔒 - Shared backend for sleep provider and Sleeping futures.
- Sleeping
- A future returned by
MockSleepProvider::sleep().