mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Merge pull request #929 from Tria-plc/freight_feature/usermanagement
fix configratio
This commit is contained in:
@@ -82,11 +82,16 @@ describe("import: dead first cycle — expire all, reopen, book again", { retrie
|
||||
withSchedule(DEPARTURE, (s) => {
|
||||
endPaymentPhase(s.id);
|
||||
// Not full + departure days away → the engine schedules a fresh cycle.
|
||||
// When the reopen instant falls inside office hours, the 10s tick's
|
||||
// guard-loop chains PRE_WINDOW straight into OPEN within the SAME tick
|
||||
// (booking-window.service.ts advanceSchedule), so PRE_WINDOW is not a
|
||||
// reliably observable resting state — assert the cycle left PAYMENT
|
||||
// without concluding FULL/DONE, whichever phase it lands on.
|
||||
pollDb<ScheduleRow>(
|
||||
"window reopens (PRE_WINDOW, cycle 2 pending)",
|
||||
"window concludes not-full (PRE_WINDOW or fast-forwarded to OPEN)",
|
||||
`SELECT window_phase FROM freight.train_schedules WHERE id = $1`,
|
||||
[s.id],
|
||||
(row) => row?.window_phase === "PRE_WINDOW",
|
||||
(row) => !!row && row.window_phase !== "PAYMENT" && row.window_phase !== "DONE",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user