Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate config.Now to second precision #168

Merged
merged 2 commits into from
May 18, 2023
Merged

Conversation

DmitriyMV
Copy link
Contributor

Because pgp uses seconds and not ns.

For(alternative) to ProtonMail/gopenpgp#240

Because pgp uses seconds and not ns.
Fix the test to create subkeys with different creation times, so that
the SigningKey function selects the later subkey, and rename the test
to TestReturnNewestUnexpiredSigningSubkey.
Copy link
Member

@twiss twiss left a comment

Choose a reason for hiding this comment

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

👍 Thanks! I've fixed one (broken) test that failed due to this, seems good now.

@twiss twiss merged commit 7afd394 into ProtonMail:main May 18, 2023
@DmitriyMV DmitriyMV deleted the trunc branch May 19, 2023 05:26
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.

None yet

2 participants