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

Add more testing for s2n_send #3409

Merged
merged 4 commits into from
Jul 28, 2022
Merged

Add more testing for s2n_send #3409

merged 4 commits into from
Jul 28, 2022

Conversation

lrstewart
Copy link
Contributor

Description of changes:

Expand the s2n_send unit tests in preparation to merge the buffered send work.

The new tests focus on the number of calls to send, how data is split between records, the size of the output stuffer (it can grow but should never grow), and that all data is eventually sent regardless of send failures.

Call-outs:

Any other cases you'd want covered before we make significant changes to the logic around buffering and sending records?

Testing:

This is all testing.

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

With a particular focus on the number of calls to send,
how data is split between records,
that the output buffer doesn't grow,
and that all data is actually sent regardless of interruptions.
@github-actions github-actions bot added the s2n-core team label Jul 22, 2022
@lrstewart lrstewart marked this pull request as ready for review July 22, 2022 18:03
Copy link
Contributor

@maddeleine maddeleine left a comment

Choose a reason for hiding this comment

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

Hmmmmm what about a test where s2n_send blocks multiple times? That might already exist in our code base though.

@lrstewart lrstewart requested a review from maddeleine July 27, 2022 04:27
@lrstewart lrstewart enabled auto-merge (squash) July 28, 2022 07:15
@lrstewart lrstewart merged commit af60169 into aws:main Jul 28, 2022
@lrstewart lrstewart deleted the send_tests branch July 28, 2022 20:51
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