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

style: simplfy api for test utility #4008

Merged
merged 1 commit into from
May 16, 2023
Merged

Conversation

jmayclin
Copy link
Contributor

@jmayclin jmayclin commented May 16, 2023

Description of changes:

The current test pair API requires a parameter dictating the number of iterations (which I'm assuming is roughly the number of "polls" each peer gets) but we always use the same paramter. The general end consumer behavior is "enough iterations to make the handshake complete successfully", so the test constant of 100 was starting to proliferate across different files. We should make this the default.

Call-outs:

I originally just rolled this into a separate PR but it was making the other PR hard to read so separating this out.

Testing:

All CI should pass.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label May 16, 2023
@jmayclin jmayclin marked this pull request as ready for review May 16, 2023 18:08
@jmayclin jmayclin enabled auto-merge (squash) May 16, 2023 18:12
@jmayclin jmayclin merged commit f9a6ffa into aws:main May 16, 2023
dougch pushed a commit to dougch/s2n-tls that referenced this pull request May 31, 2023
@jmayclin jmayclin deleted the simplify-pair branch December 22, 2023 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants