⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Improve SSLEngine.wrap precondition tests.#1412

Merged
juergw merged 6 commits intogoogle:masterfrom
prbprbprb:wrap_preconditions
Oct 29, 2025
Merged

Improve SSLEngine.wrap precondition tests.#1412
juergw merged 6 commits intogoogle:masterfrom
prbprbprb:wrap_preconditions

Conversation

@prbprbprb
Copy link
Contributor

Test improvement only. This is a subset of #1403.

For ease of review this is split into 3 commits which need squashing (3 PRs seemed like overkill 😄 ).

  1. Pure mechanical refactoring from try/fail to assertThrows
  2. Add some missing tests suggested by ConscryptEngine.calcDstsLength ignoring dstsLength #1372
  3. Better parameterisation of the tests to make them less fragile.

Copy link
Collaborator

@juergw juergw left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@juergw juergw merged commit 90218ea into google:master Oct 29, 2025
38 checks passed
@prbprbprb prbprbprb deleted the wrap_preconditions branch October 29, 2025 11:50
prbprbprb added a commit to prbprbprb/conscrypt that referenced this pull request Oct 31, 2025
This is completely analagous to google#1412 but for unwrap().

Does not include failing tests for google#1372.
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.

2 participants