]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix: cleanup connector after queued TransactionEvent.Ended replay
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 26 Mar 2026 00:02:01 +0000 (01:02 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 26 Mar 2026 00:02:01 +0000 (01:02 +0100)
commit4249dea59e9b3fc4579a08abc010af581e91c227
treea92ced1bdb248bf146612636105d2fcffd8a380d
parent56d264fec3211a43337144ff6c18c013eadd849b
fix: cleanup connector after queued TransactionEvent.Ended replay

Extract cleanupEndedTransaction() in OCPP20ServiceUtils to consolidate
stopPeriodicMeterValues + resetConnectorStatus + unlock + Available
status. Called from both stopTransaction20 (normal flow) and
sendQueuedTransactionEvents (offline replay). Fixes stale Occupied
status and orphaned meter value interval after queued Ended events.
src/charging-station/ocpp/2.0/OCPP20ResponseService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts
tests/ocpp2-e2e-test-plan.md [new file with mode: 0644]