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 integration raft_uv_transport test failures #79

Merged
merged 4 commits into from
Oct 12, 2023

Conversation

freeekanayaka
Copy link
Member

Tests where failing when running them on a system without a non-loopback network interface configured with IPv4.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
For consistency with other callback names in uv_tcp_connect.c

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
Since we're currently only supporting IPv4 and since we're setting ai_family to
AF_INET, the AI_ADDRCONFIG flag is not really making any difference as
getaddrinfo returns only IPv4 addresses.

This makes the test suite pass also if there isn't a non-loopback network
interface on the system configured with IPv4.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
Call RaftHeapFree(r->handshake.base) only if there was a successful call to
uvTcpEncodeHandshake().

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (f9b96aa) 73.97% compared to head (f9042e6) 74.01%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #79      +/-   ##
==========================================
+ Coverage   73.97%   74.01%   +0.03%     
==========================================
  Files          53       53              
  Lines        9454     9455       +1     
  Branches     2337     2337              
==========================================
+ Hits         6994     6998       +4     
+ Misses       1131     1130       -1     
+ Partials     1329     1327       -2     
Files Coverage Δ
src/uv_ip.c 63.63% <100.00%> (ø)
src/uv_tcp_connect.c 82.70% <45.45%> (+0.09%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@freeekanayaka freeekanayaka merged commit 69fbb57 into cowsql:main Oct 12, 2023
4 of 5 checks passed
@freeekanayaka freeekanayaka deleted the fix-uv-test-failures branch October 12, 2023 14:04
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.

1 participant