test(engine): force overdue branch in alarm-during-sleep test with negative offset#4758
Conversation
Code ReviewPR: test(engine): force overdue branch in alarm-during-sleep test with negative offset OverviewThis PR converts a previously ignored, timing-dependent regression test into a deterministic one by switching the alarm offset from What's Good
Minor Concern: Subscription OrderingThe comment on the new In practice this is likely fine — the engine handles sleep intents asynchronously with sufficient scheduling slack — but the comment overstates the guarantee slightly. If this ever shows intermittent CI failures, subscribing before actor creation would be the robust fix. VerdictSolid improvement. The deterministic approach is clearly correct, the |
1939547 to
68ddecb
Compare
3f88401 to
0e7355d
Compare
Preview packages published to npmInstall with: npm install rivetkit@pr-4758All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-7327430
docker pull rivetdev/engine:full-7327430Individual packagesnpm install rivetkit@pr-4758
npm install @rivetkit/react@pr-4758
npm install @rivetkit/rivetkit-napi@pr-4758
npm install @rivetkit/workflow-engine@pr-4758 |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: