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: Thread testing.T through so we panic less #5938

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

jannotti
Copy link
Contributor

Same tests, nicer output, and we can see multiple failures, since we don't panic.

Ran into tests that were hard to understand because they panic'ed while doing incentive work. This PR breaks out the very repetitive changes to use `require.

Same tests, nicer output, and we can see multiple failures, since we
don't panic.
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d8c825d) 55.68% compared to head (9d6d96b) 55.71%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5938      +/-   ##
==========================================
+ Coverage   55.68%   55.71%   +0.03%     
==========================================
  Files         487      487              
  Lines       68048    68048              
==========================================
+ Hits        37894    37916      +22     
+ Misses      27578    27570       -8     
+ Partials     2576     2562      -14     

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

Copy link
Contributor

@algorandskiy algorandskiy left a comment

Choose a reason for hiding this comment

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

Not sure what was the original intention of using panic vs require helpers. Typed comparison is faster than reflection but is it a big difference here? IDK

@algorandskiy algorandskiy requested a review from yossigi February 15, 2024 19:55
@algorandskiy algorandskiy requested a review from cce March 7, 2024 17:37
@algorandskiy algorandskiy merged commit 2bf8630 into algorand:master Mar 21, 2024
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