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

Use UUID for socket endpoints #570

Merged
merged 10 commits into from
May 19, 2023
Merged

Conversation

TwistedTwigleg
Copy link
Contributor

Description of changes:

Adjust tests to use UUID instead of timestamps for socket endpoints, preventing any overlap if two tests run in parallel or at the exact same timestamp clock sample.


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

@codecov-commenter
Copy link

codecov-commenter commented May 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03 ⚠️

Comparison is base (118a57e) 79.40% compared to head (84d6855) 79.37%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #570      +/-   ##
==========================================
- Coverage   79.40%   79.37%   -0.03%     
==========================================
  Files          25       25              
  Lines        5574     5581       +7     
==========================================
+ Hits         4426     4430       +4     
- Misses       1148     1151       +3     
Impacted Files Coverage Δ
source/posix/socket.c 73.91% <100.00%> (+0.25%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

tests/socket_handler_test.c Outdated Show resolved Hide resolved
Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

fix & ship

source/posix/socket.c Outdated Show resolved Hide resolved
source/windows/iocp/socket.c Outdated Show resolved Hide resolved
tests/byo_crypto_test.c Outdated Show resolved Hide resolved
tests/socket_test.c Outdated Show resolved Hide resolved
tests/tls_handler_test.c Outdated Show resolved Hide resolved
tests/tls_handler_test.c Outdated Show resolved Hide resolved
@TwistedTwigleg
Copy link
Contributor Author

Thanks! Merging into main...

@TwistedTwigleg TwistedTwigleg merged commit 1378606 into main May 19, 2023
@TwistedTwigleg TwistedTwigleg deleted the use_uuid_for_socket_endpoints branch May 19, 2023 18:39
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.

3 participants