mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-13 19:20:06 +00:00
8823977612
- Add unexported steerDrainFn test seam on App so unit tests can inject fake steer items without standing up a full *kit.Kit (Options.Kit is a concrete struct, not an interface). - releaseBusyAfterCompact now prefers the seam over Kit.DrainSteer via a small switch; production behaviour is unchanged when the field is nil. - Add TestReleaseBusyAfterCompact_splicesSteerAheadOfQueue, which pre-populates both fake steer items and ordinary queue prompts, invokes releaseBusyAfterCompact, and asserts the first dispatched prompt is the steer item — proving steer messages retain 'act now' priority and that drainQueue is actually launched (the bug from #27).