Files
craft-libs/crates/update/src
dotCooCoo 2ab9e9fe70 craft-update: the one-installer-at-a-time test holds each installer instead of sleeping
installers_never_run_at_the_same_time slept 3 ms inside each installer and
up to 4 ms before each of its 24 jobs queued, so whether two installers ever
overlapped depended on thread timing. A queue that let two run at once could
still pass.

The test now runs three rounds, one per kind of job (an install, a removal,
a lone installer). In each round the first job's installer blocks on a
channel the test holds. The test then starts seven more jobs one at a time
and requires each to report that it is waiting before it starts the next.
After the first installer is released, every later call also blocks until
the test has checked that it is the only one running. Both assertions (at
most one installer running, all 24 targets handled) are unchanged.

With the queue's busy check removed, or with either `alone` or `batched` no
longer marking the installer busy, the test failed in 20 of 20 runs each.
2026-11-27 18:42:27 -08:00
..
…
…
…