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

fix: Fix redundant code #4504

Merged
merged 4 commits into from
Apr 16, 2024
Merged

Conversation

jouho
Copy link
Contributor

@jouho jouho commented Apr 15, 2024

Resolved issues:

Resolves issue #4500 described here.

Description of changes:

Reducing redundant code by calling s2n_resumption_test_ticket_key_setup for test cases that manually sets the same ticket key.

Call-outs:

Testing:

Confirmed all unit tests passes by running CTEST_PARALLEL_LEVEL=$(nproc) ctest --test-dir build

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

@jouho jouho requested review from jmayclin and maddeleine April 15, 2024 22:27
@jouho jouho changed the title fix redundant code fix: Fix redundant code Apr 15, 2024
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.

Looks like we're doing this setup in the extended master secret test as well.

@jouho jouho requested a review from maddeleine April 15, 2024 23:16
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.

Nice! :)

Copy link
Contributor

@jmayclin jmayclin left a comment

Choose a reason for hiding this comment

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

Yay for cleaner code 🥳

@jouho jouho enabled auto-merge (squash) April 16, 2024 21:20
@jouho jouho disabled auto-merge April 16, 2024 21:20
@jouho jouho enabled auto-merge (squash) April 16, 2024 21:20
@jouho jouho merged commit 3c4aab8 into main Apr 16, 2024
35 checks passed
@jouho jouho deleted the use-new-testlib-function-to-reduce-code-redundancy branch April 16, 2024 23:29
@jouho jouho added the s2n-core team label Apr 24, 2024
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.

cleanup: Change tests to use new testlib function
3 participants