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

harden bank tests #34821

Merged
merged 3 commits into from
Jan 22, 2024
Merged

harden bank tests #34821

merged 3 commits into from
Jan 22, 2024

Conversation

tao-stones
Copy link
Contributor

Problem

Some bank tests are set up with no-fee no-rent, others requires rent but no-fee, yet others are OK with FeeRateGovernor::default() and Rent::default().

In preparation of removing a multiplier used by tests in calculate_fee(), these tests should be updated to be explicit on what fee rate and rent should be when creating genesis_config.

Summary of Changes

  • to be explicit on genesis_config wrt the fee rate and rent.

Fixes #

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3916c31) 81.7% compared to head (57a20e1) 81.7%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34821   +/-   ##
=======================================
  Coverage    81.7%    81.7%           
=======================================
  Files         826      826           
  Lines      223237   223267   +30     
=======================================
+ Hits       182457   182506   +49     
+ Misses      40780    40761   -19     

Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

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

lgtm

@tao-stones tao-stones merged commit a5c470d into solana-labs:master Jan 22, 2024
35 checks passed
@tao-stones tao-stones deleted the harden-bank-tests branch January 22, 2024 19:39
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.

2 participants