gsxdsm
dd569395e8
FN-8671: isolate triage admission state in tests
Prevent leaked singleton admission state from affecting later triage polling tests.
- Add test-only coordinator reset and inspection seams for all admission categories.
- Stop tracked triage processors before clearing shared reservation and pre-held-slot state.
- Cover teardown behavior and document singleton-state isolation guidance.
Files changed:
docs/testing.md | 6 ++
packages/engine/src/__tests__/concurrency.test.ts | 56 ++++++++++++++++
packages/engine/src/__tests__/triage.test.ts | 82 ++++++++++++++++++++---
packages/engine/src/concurrency.ts | 30 +++++++++
4 files changed, 166 insertions(+), 8 deletions(-)
Fusion-Task-Id: FN-8671
Fusion-Task-Lineage: 41217db4-1fd6-45d6-a846-c57fc3c7052e
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-01 00:14:32 -07:00
..
2026-07-31 18:03:13 -07:00
2026-08-01 00:14:32 -07:00
2026-07-26 18:11:47 -07:00
2026-07-27 19:40:08 -07:00
2026-06-08 15:19:27 -07:00
2026-07-31 10:24:22 -07:00