Skip to content

Commit

Permalink
fix: branch restructuring test (near#12128)
Browse files Browse the repository at this point in the history
I accidentally made a check nearly trivial and no one noticed :)


https://github.com/near/nearcore/pull/11071/files#diff-e063ceca4433a740750d3c14a1f8f6d6c3b0a722abcadb633290da497507f633L447-L449

We want to check branch restructuring case, when a child node must be
read even though it is not directly queried.
  • Loading branch information
Longarithm authored Sep 24, 2024
1 parent 93c5575 commit cae3d22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/store/src/trie/trie_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ mod trie_storage_tests {
#[test]
fn test_memtrie_recorded_branch_restructuring() {
test_memtrie_and_disk_updates_consistency(vec![
(vec![7], Some(vec![1])),
(vec![7, 0], Some(vec![2])),
(vec![7, 1], Some(vec![3])),
(vec![7], Some(vec![10])),
(vec![7, 0], None),
(vec![7, 6], Some(vec![8])),
]);
}

Expand Down

0 comments on commit cae3d22

Please sign in to comment.