Skip to content

Commit

Permalink
Fix trie pruner restore from genesis test (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harrm authored Aug 21, 2023
1 parent 153a078 commit f13e68d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/core/storage/trie_pruner/trie_pruner_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ TEST_F(TriePrunerTest, RestoreStateFromGenesis) {

ON_CALL(*block_tree, getChildren(_))
.WillByDefault(Return(std::vector<kagome::primitives::BlockHash>{}));

ON_CALL(*block_tree, bestLeaf())
.WillByDefault(Return(BlockInfo{6, hash_from_header(headers.at(6))}));

auto mock_block = [&](unsigned int number) {
auto str_number = std::to_string(number);
Expand Down

0 comments on commit f13e68d

Please sign in to comment.