Skip to content

Freeze listDue cursor test clock (CL-7252) - #521

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7252-freeze-listdue-test-clock
Aug 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-7252-freeze-listdue-test-clock

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

The listDue cursor test wrote five pending-seed rows with staggered TTLs but used wall-clock Date.now on each put. If the clock ticked between puts, expiresAt order was not user_4 through user_0, which flaked CI on merges with main (including #519).

This freezes now: () => clock on every put and listDue in that test (same pattern as the expired-row test). Production listDue is unchanged.

Linear: CL-7252

Test plan: bun test packages/onboarding/src/pending-seed.test.ts passed three times locally. Do not merge until CI is green.

CL-7252: put() defaulted to Date.now; a tick between rows shuffled expiresAt and flaked CI.
@TheGreatAxios
TheGreatAxios merged commit cefdab0 into main Aug 30, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant