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

Removes unnecessary feature activation when testing accounts data size #34701

Conversation

brooksprumo
Copy link
Contributor

Problem

Some Bank tests activate the cap_accounts_data_len feature unnecessarily.

Summary of Changes

Remove 'em.

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (30fa449) 81.8% compared to head (3dabe6c) 81.8%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34701   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         824      824           
  Lines      222687   222686    -1     
=======================================
+ Hits       182245   182282   +37     
+ Misses      40442    40404   -38     

@brooksprumo brooksprumo marked this pull request as ready for review January 9, 2024 00:15
Comment on lines +10267 to +10269
let (genesis_config, _mint_keypair) = create_genesis_config(1_000 * LAMPORTS_PER_SOL);
let bank = Bank::new_for_tests(&genesis_config);
let bank = bank.wrap_with_bank_forks_for_tests().0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also took this opportunity to make the bank creation part here identical to what's in test_accounts_data_size_with_good_transaction.

Copy link
Contributor

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo brooksprumo merged commit d3690dd into solana-labs:master Jan 9, 2024
35 checks passed
@brooksprumo brooksprumo deleted the cap-accounts-data-len/remove/tests branch January 9, 2024 00:21
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