mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-12 20:15:10 +00:00
Any batch failure sets the process-global DOWNLOAD_CANCELLED, which TokenBucket.consume waits on, so a test elsewhere could void every timing assertion here; add the autouse clear fixture the other downloader test modules already use. Also capture the debt sleep via a stub instead of timing a real Event.wait, whose occasional spurious early wake tripped the 1.0s lower bound.