Skip to content

Make session timing controllable. - #94

Merged
samuel-williams-shopify merged 1 commit into
mainfrom
control-session-time
Aug 17, 2026
Merged

Make session timing controllable.#94
samuel-williams-shopify merged 1 commit into
mainfrom
control-session-time

Conversation

@samuel-williams-shopify

Copy link
Copy Markdown
Contributor

Add Utopia::Session::LazyHash#now as the single source of current time for session loading, validation, expiry, and persistence.

Pass the session timestamp through the lazy loader so middleware does not own an independent clock. Tests mock the session method and advance a local timestamp instead of sleeping.

This reduces the session test runtime from approximately eight seconds to milliseconds and makes expiry boundaries deterministic.

Assisted-By: devx/cbdeae41-9308-4071-ad53-58cd92db2946
@samuel-williams-shopify
samuel-williams-shopify merged commit 68f54cf into main Aug 17, 2026
36 checks passed
@samuel-williams-shopify
samuel-williams-shopify deleted the control-session-time branch August 17, 2026 07:43
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