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

x/partiticipationrewards/types: assert on expected error substring in TestGetRewardsAllocations #832

Conversation

odeke-em
Copy link
Contributor

This change makes TestGetRewardsAllocations more precise by asserting on expected error substrings instead of just expecting an error. This makes it that any future regressions that produce errors can be trivially sniffed out when tests fail.

Fixes #831

… TestGetRewardsAllocations

This change makes TestGetRewardsAllocations more precise
by asserting on expected error substrings instead of just
expecting an error. This makes it that any future regressions
that produce errors can be trivially sniffed out when tests fail.

Fixes quicksilver-zone#831
@odeke-em
Copy link
Contributor Author

/cc @joe-bowman @elias-orijtech

Copy link
Contributor

@faddat faddat left a comment

Choose a reason for hiding this comment

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

this is great, thank you!

Copy link

codecov bot commented Dec 10, 2023

Codecov Report

Merging #832 (59a7bc1) into main (aa4f358) will increase coverage by 47.51%.
Report is 3 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #832       +/-   ##
===========================================
+ Coverage   14.45%   61.96%   +47.51%     
===========================================
  Files         243      172       -71     
  Lines       63133    14028    -49105     
===========================================
- Hits         9126     8693      -433     
+ Misses      53251     4596    -48655     
+ Partials      756      739       -17     
Flag Coverage Δ
unittests 61.96% <ø> (+47.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 86 files with indirect coverage changes

@faddat faddat merged commit b065c99 into quicksilver-zone:main Dec 10, 2023
11 checks passed
joe-bowman pushed a commit that referenced this pull request Dec 11, 2023
joe-bowman pushed a commit that referenced this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants