Skip to content

fix: use dynamic future dates in key control tests#74

Open
seanjin99 wants to merge 2 commits intordkcentral:mainfrom
seanjin99:fix/expired-test-dates
Open

fix: use dynamic future dates in key control tests#74
seanjin99 wants to merge 2 commits intordkcentral:mainfrom
seanjin99:fix/expired-test-dates

Conversation

@seanjin99
Copy link
Copy Markdown
Contributor

Replace hardcoded not_on_or_after dates with a runtime-computed date (now + 10 years) so tests never expire. The previous hardcoded date of 2025-12-09 had already expired, causing testKeyCtrlUnwrapWithKeyUsage and related tests to fail with 'rights_allowed_time' errors.

Fixes #73

Replace hardcoded not_on_or_after dates with a runtime-computed date
(now + 10 years) so tests never expire. The previous hardcoded date
of 2025-12-09 had already expired, causing testKeyCtrlUnwrapWithKeyUsage
and related tests to fail with 'rights_allowed_time' errors.

Fixes rdkcentral#73
Copy link
Copy Markdown
Contributor

@riwoh riwoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seanjin99 small fix.

@riwoh riwoh requested a review from mhabrat March 11, 2026 14:10
Co-authored-by: riwoh <107917169+riwoh@users.noreply.github.com>
@riwoh riwoh self-requested a review March 27, 2026 18:18
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.

Bug: Hardcoded date in key validity test is now expired.

2 participants