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

Use slot 1 for tests' sample store and accounts #16494

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Apr 12, 2021

Problem

Anticipating the removal of the old account hashing way, the Account DB
tests use slot 0 for the sample storages and accounts data. Slot 0 is a
special case, and so to make future changes not break any tests, update
just the tests here now to use any other slot.

The golden hash values were obtained by running cargo test and copying
in the "actual" values from the test output into the raw_expected
vector of the test code.

Summary of Changes

Use slot 1 for tests' sample store and accounts

Validated by running cargo test successfully.

(This work is referencing my previous PR #16442)

Anticipating the removal of the old account hashing way, the Account DB
tests use slot 0 for the sample storages and accounts data.  Slot 0 is a
special case, and so to make future changes not break any tests, update
just the tests here now to use any other slot.

The golden hash values were obtained by running `cargo test` and copying
in the "actual" values from the test output into the `raw_expected`
vector of the test code.

Validated by running `cargo test` successfully.
@brooksprumo brooksprumo marked this pull request as ready for review April 12, 2021 20:55
@codecov
Copy link

codecov bot commented Apr 12, 2021

Codecov Report

Merging #16494 (b4a3f61) into master (2bc19eb) will increase coverage by 0.0%.
The diff coverage is 97.1%.

@@           Coverage Diff            @@
##           master   #16494    +/-   ##
========================================
  Coverage    80.0%    80.1%            
========================================
  Files         412      412            
  Lines      111419   111774   +355     
========================================
+ Hits        89240    89573   +333     
- Misses      22179    22201    +22     

@brooksprumo brooksprumo merged commit 54ef065 into solana-labs:master Apr 12, 2021
@brooksprumo brooksprumo deleted the bprumo/slot1-for-tests branch April 12, 2021 22:09
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