Files
machineGroupControl/test
Rene De Ren ea2857fb25 fix: serialize per-pump shutdown + cancel deferred dispatch in turnOffAllMachines
PS calls turnOffAllMachines on every tick once level < stopLevel. Two
ways the pump could re-engage after we shut it down:

1. _delayedCall: a 1% dead-zone keep-alive parked in MGC's deferred
   dispatch fires from the in-flight handleInput's finally block AFTER
   the shutdown completes, dispatching flow + startup to a fresh pump.
   Clear _delayedCall at the top of turnOff.

2. Concurrent shutdown calls on the same pump interrupt each other
   before the sequence can transition past stopping. Track shutdown-
   in-flight per pump and skip if one is already underway.

Together with the rotatingMachine delayedMove-clearing fix, this lets
the level-based hysteresis cycle complete: pumps shut off cleanly at
stopLevel, basin reverses direction, refills to startLevel, repeat.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 18:17:55 +02:00
..
2026-02-19 17:38:05 +01:00
2026-02-19 17:38:05 +01:00
2026-02-19 17:38:05 +01:00

machineGroupControl Test Suite Layout

Required EVOLV layout:

  • basic/
  • integration/
  • edge/
  • helpers/

Baseline structure tests:

  • basic/structure-module-load.basic.test.js
  • integration/structure-examples.integration.test.js
  • edge/structure-examples-node-type.edge.test.js