Module aws_smithy_async::test_util
source · Expand description
Test utilities for time and sleep
Structs
- Guard returned from
SleepGate::expect_sleep - A sleep implementation where calls to
AsyncSleep::sleepblock untilSleepGate::expect_sleepis called - A sleep implementation where calls to
AsyncSleep::sleepwill complete instantly. - Manually controlled time source
- Gate that allows
ControlledSleepto advance.
Functions
- Returns a trio of tools to test interactions with time
- Returns a duo of tools to test interactions with time. Sleeps will end instantly, but the desired length of the sleeps will be recorded for later verification.