From f13e68d97956e41854e71015a6e66880e0338264 Mon Sep 17 00:00:00 2001 From: Harrm Date: Mon, 21 Aug 2023 19:47:44 +0300 Subject: [PATCH] Fix trie pruner restore from genesis test (#1747) --- test/core/storage/trie_pruner/trie_pruner_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/core/storage/trie_pruner/trie_pruner_test.cpp b/test/core/storage/trie_pruner/trie_pruner_test.cpp index 411a6bbad6..701b3bf50c 100644 --- a/test/core/storage/trie_pruner/trie_pruner_test.cpp +++ b/test/core/storage/trie_pruner/trie_pruner_test.cpp @@ -624,6 +624,9 @@ TEST_F(TriePrunerTest, RestoreStateFromGenesis) { ON_CALL(*block_tree, getChildren(_)) .WillByDefault(Return(std::vector{})); + + 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);