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

test(s2n-quic-core): only check IntervalSet integrity in tests #2131

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Feb 16, 2024

Description of changes:

When using the IntervalSet in tests outside of s2n-quic-core, you currently incur the cost of internal consistency checking. This change replaces cfg(debug_assertions) with cfg(test) to avoid these costs.

Testing:

The existing tests will still ensure these checks stay consistent.

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

@camshaft camshaft marked this pull request as ready for review February 16, 2024 18:54
@camshaft camshaft merged commit f6d64db into main Feb 20, 2024
119 of 120 checks passed
@camshaft camshaft deleted the camshaft/interval-set-dbg branch February 20, 2024 20:11
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