fix(09): IN-01 guard __resetDrainState against production use
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user