test(rivetkit): cover async websocket close db access#4938
Conversation
Code ReviewOverviewThis PR re-enables three previously skipped tests (TODO #4705) that verify async WebSocket close handler DB access works correctly during sleep shutdown. The changes are a meaningful quality improvement. What Changed
Positive ObservationsPolling removal is the right fix. The previous approach called UUID-based actor names correctly prevent cross-test actor identity collisions, which was likely a source of the original flakiness. Event ordering assertions are semantically stronger than the old
IssuesTime-based waits with no event signal. The Duplicate test body. The two test cases ( No comment on Minor Nits
SummaryThe core approach is sound and the tests are now functionally correct. The main risk is latent time-sensitivity in the |
Preview packages published to npmInstall with: npm install rivetkit@pr-4938All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-50d75f0
docker pull rivetdev/engine:full-50d75f0Individual packagesnpm install rivetkit@pr-4938
npm install @rivetkit/react@pr-4938
npm install @rivetkit/rivetkit-napi@pr-4938
npm install @rivetkit/workflow-engine@pr-4938 |
e887f7e to
d3d9f0e
Compare
e37a5c2 to
a35a0a4
Compare

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: