bd7fb053a7e427df6edc163e9f6ed826b500eea4
TestShutdownWatchdogHangingPastLeashForcesExit gave the watchdog two leash lengths (60ms) to force an exit, but the 30ms leash only starts the timer -- the firing goroutine must then be scheduled before the injected exit is observable. Measured margin is ~29.7ms, so the test is a wall-clock race against the Go scheduler and fails intermittently on a loaded machine, where it parks real work behind a gate failure unrelated to the change under test. The assertion is now the contract that actually matters and that scheduling jitter cannot falsify: the exit must not happen before the leash, and it must happen. Waiting for it uses a generous ceiling, and the new elapsed >= leash check catches an early fire strictly -- something the old test could not do, because it only bounded lateness. The inverse test asserts the ABSENCE of a forced exit, which load cannot falsify (a slow runner only delays the exit being checked for), so it keeps a tight bound and the suite stays fast. Verified by mutation: removing the forced exit fails the first test, and firing before the leash now fails it on the new elapsed check.
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
133 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.8%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%