Skip to main content

reset_test_clock

Function reset_test_clock 

Source
pub fn reset_test_clock()
Expand description

Put this thread’s test clock back on real time.

Worker threads are REUSED across scenarios, so without this the next scenario scheduled onto this thread would inherit the previous one’s accumulated offset — the same cross-contamination the process-global offset had, just at thread granularity. The E2E runner calls this at the start of every scenario. Clears the freeze as well, so a scenario cannot leave the next one’s clock stopped.