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

Tests: Fix error messages in ledger tests #5363

Merged

Conversation

id-ms
Copy link
Contributor

@id-ms id-ms commented May 7, 2023

Summary

Some of the ledger unit test does not add the block to the mock block queue and only invokes newBlock on all trackers. This causes the voters tracker to fail since it relays on data from the block queue.
In order to fix it, just need to make sure that blocks are added to the mock block queue

Test Plan

@id-ms id-ms force-pushed the fix-error-messages-in-ledger-tests branch from cbdb050 to 8599cbe Compare May 7, 2023 09:16
@codecov
Copy link

codecov bot commented May 7, 2023

Codecov Report

Merging #5363 (8599cbe) into master (9e980d3) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5363      +/-   ##
==========================================
+ Coverage   55.28%   55.29%   +0.01%     
==========================================
  Files         454      454              
  Lines       63772    63772              
==========================================
+ Hits        35254    35265      +11     
+ Misses      26115    26106       -9     
+ Partials     2403     2401       -2     

see 13 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@algorandskiy algorandskiy requested review from cce and icorderi May 9, 2023 18:04
Copy link
Contributor

@algonautshant algonautshant left a comment

Choose a reason for hiding this comment

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

Looks fine.

@bbroder-algo bbroder-algo merged commit 74c3caa into algorand:master May 9, 2023
24 checks passed
@id-ms id-ms deleted the fix-error-messages-in-ledger-tests branch May 11, 2023 07:30
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.

None yet

4 participants