Skip to content

test(oauth): stabilize token lifetime boundary fixture - #14

Merged
mrgoonie merged 1 commit into
mainfrom
codex/oauth-test-time
Sep 12, 2026
Merged

mrgoonie merged 1 commit into
mainfrom
codex/oauth-test-time

Conversation

@mrgoonie

Copy link
Copy Markdown
Contributor

Summary

Fix an intermittent OAuth test failure observed in main CI on macOS Node 20. The overlong-token fixture set expiry relative to an earlier clock read but let the signing helper calculate issued-at later. Crossing a second boundary accidentally made the token valid for 300 seconds.

Set both iat and exp from the same timestamp so the test always checks a 301-second lifetime. Production authorization remains unchanged.

Validation

  • OAuth integration tests: 10 passed.
  • Main CI failure evidence: run 34687029067, oauth.test.ts:192.
  • Full matrix runs before merge.

@mrgoonie
mrgoonie merged commit d5ad8e4 into main Sep 12, 2026
9 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