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

rpcsrv: fix TestRPC failing #3368

Merged
merged 1 commit into from
Mar 22, 2024
Merged

rpcsrv: fix TestRPC failing #3368

merged 1 commit into from
Mar 22, 2024

Conversation

AliceInHunterland
Copy link
Contributor

@AliceInHunterland AliceInHunterland commented Mar 20, 2024

During the empirical selection of parameters got #3367 so seems rpc test package is still big and therefore slow for gh windows runner. But with setup in this commit haven't got test timeout yet.

Close #2975.
Close #3314.

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.80%. Comparing base (b028c77) to head (f409fc3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3368      +/-   ##
==========================================
- Coverage   84.82%   84.80%   -0.03%     
==========================================
  Files         331      331              
  Lines       44961    44961              
==========================================
- Hits        38139    38129      -10     
- Misses       5312     5319       +7     
- Partials     1510     1513       +3     

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

Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

Good, it may help. It also may help with #3314, ref. #3314 (comment). Add a closing link to macOS test.

Default http.Client and http.Transport can be really slow. Also on
windows Timeout: time.Second was not enough. Probably network related
issue. As mentioned in https://github
.com//issues/2975#issuecomment-1750523651 forcely use
only tcp4 and FallbackDelay: -1. This made TestRPC little bit faster so
gh windows runner can manage it without timeout or POST request fails.

Close #2975
Close #3314

Signed-off-by: Ekaterina Pavlova <[email protected]>
@AnnaShaleva
Copy link
Member

Very nice, only codecove is failing, but it's coverage-related issue.

@AnnaShaleva AnnaShaleva merged commit d5a5e4c into master Mar 22, 2024
19 of 20 checks passed
@AnnaShaleva AnnaShaleva deleted the test-dial branch March 22, 2024 13:53
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.

TestRPC on macOS TestRPC timeout on Windows
2 participants