Skip to content

test(grok): fix PreferredOIDC test expiry rot - #104

Merged
prakersh merged 1 commit into
mainfrom
fix/grok-oidc-test-expiry
Jul 23, 2026
Merged

test(grok): fix PreferredOIDC test expiry rot#104
prakersh merged 1 commit into
mainfrom
fix/grok-oidc-test-expiry

Conversation

@prakersh

Copy link
Copy Markdown
Contributor

TestParseGrokAuth_PreferredOIDC hardcoded expires_at: 2026-07-01, which is now a past date - IsExpired() flips to true and the test fails (should not be expired) on any run after that date. This made internal/api red on clean main independent of any feature work.

Fix: use 2099-01-01, matching the never-expires convention already used by TestDetectGrokCredentials_ValidFile in the same file.

Verified: go test ./internal/api/ is now fully green.

TestParseGrokAuth_PreferredOIDC hardcoded expires_at 2026-07-01, which
became a past date and flipped IsExpired() to true, failing on line 49.
Use 2099-01-01 to match the never-expires convention already used by
TestDetectGrokCredentials_ValidFile in the same file.
@prakersh
prakersh merged commit 98236d1 into main Jul 23, 2026
5 checks passed
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@prakersh prakersh mentioned this pull request Jul 23, 2026
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