fix(09): IN-01 guard __resetDrainState against production use

This commit is contained in:
Lucas Berger
2026-06-12 20:59:53 -04:00
parent b724b3e932
commit b7767af825
+1
View File
@@ -881,6 +881,7 @@ export function stopOutboxTrigger(): void {
* relying on the previous test having drained cleanly. Not for production use. * relying on the previous test having drained cleanly. Not for production use.
*/ */
export function __resetDrainState(): void { export function __resetDrainState(): void {
if (process.env.NODE_ENV === 'production') return; // test-only; never clear the guard in prod
isDraining = false; isDraining = false;
drainRequested = false; drainRequested = false;
} }