mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
`drop_does_not_wait_for_a_synchronously_blocked_source` passed only when the watcher drop returned within 1 s, so a slow runner could fail it. The source now stays blocked until the test releases it, so a drop that waits for it never returns. The test waits for the drop under `craft_testkit::deadline::with_deadline`, which fails only a drop that hangs. The file's other waits on the source (its start, its shared state, its publishing and its exit) use the same guard in place of 2 s timeouts. `completion_between_pumps_cannot_reject_a_chained_request` spun on `yield_now` against 3 s deadlines until the service settled. Its wake callback now sends on a channel, and the test pumps once after each wake: the request's, the worker's ready signal and the picker's answer. The whole test runs under one `with_deadline` hang guard. Every assertion is kept. craft-platform takes craft-testkit as a dev-dependency.