Repository navigation
test(esign): pin fixture certificate start so it covers the frozen clock - #86
Merged
Merged
Conversation
The fixture certificates started one day before the real time, while the service tests freeze their clock at 2026-10-17. From 2026-10-18 the certificates were not yet valid at the frozen time, so agentPrepare refused them as expired and every esign service test failed.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughCertificate fixtures now use a fixed ChangesCertificate fixture dates
Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The esign service tests freeze their clock at 2026-10-17T10:00Z, but the fixture CA and signer certificates had
notBefore = Date.now() - 1 day. From 2026-10-18 the certificates were not yet valid at the frozen time, soagentPreparethrewcertificate_invalid("The CIE certificate is expired") and 14 tests intests/esign-service.test.tsfailed on every branch (e.g. #85).notBeforeis now fixed at 2026-01-01.notAfterstays relative to now, because the OCSP and diff tests use real time.