mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-13 11:17:50 -04:00
a2c434141d
Using `#[tokio::test(start_paused = true)]` pauses time, yet tokio will still advance it when encountering `sleep`s while it has no other work to do. This makes the tests that rely on timeouts deterministic and should prevent those tests from becoming flaky on busy machines. # Expected complexity level and risk 2 # Testing This modifies tests. It does appear to work as described, but it can't hurt if the reviewers convince themselves that it does indeed.
⚠️ Internal Crate ⚠️
This crate is intended for internal use only. It is not stable and may change without notice.