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

Testing: Move WaitForConfirmedTxn down into clients #6218

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Jan 8, 2025

Allows for more consistent communication with nodes during tests

This allows tests to keep talking to the same node, so that when they wait for a round, their next api call is sure to go to the node that has committed that round. It also simplifies a lot of code that otherwise needs a RestClientFixture and a libgoal.Client.

Summary

Test Plan

@jannotti jannotti changed the title Move WaitForConfirmedTxn down into clients Testing: Move WaitForConfirmedTxn down into clients Jan 8, 2025
@jannotti jannotti self-assigned this Jan 8, 2025
Allows for more consistent communication with nodes during tests
Copy link
Contributor

@gmalouf gmalouf left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 51.88%. Comparing base (45e94f5) to head (8d71f3e).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
daemon/algod/api/client/restClient.go 0.00% 20 Missing ⚠️
libgoal/transactions.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6218      +/-   ##
==========================================
- Coverage   51.94%   51.88%   -0.06%     
==========================================
  Files         643      643              
  Lines       86242    86267      +25     
==========================================
- Hits        44795    44763      -32     
- Misses      38584    38635      +51     
- Partials     2863     2869       +6     

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

@algorandskiy algorandskiy merged commit 0b8d9e0 into algorand:master Jan 8, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants