test: Add test case for popping from an empty history tree
This commit is contained in:
parent
3efa9cb75e
commit
e89f93ff85
|
@ -174,6 +174,10 @@ TEST(History, EpochBoundaries) {
|
||||||
view.PopHistoryNode(epoch2);
|
view.PopHistoryNode(epoch2);
|
||||||
EXPECT_EQ(view.GetHistoryLength(epoch2), 0);
|
EXPECT_EQ(view.GetHistoryLength(epoch2), 0);
|
||||||
|
|
||||||
|
// Trying to truncate an empty tree is a no-op
|
||||||
|
view.PopHistoryNode(epoch2);
|
||||||
|
EXPECT_EQ(view.GetHistoryLength(epoch2), 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(History, GarbageMemoryHash) {
|
TEST(History, GarbageMemoryHash) {
|
||||||
|
|
Loading…
Reference in New Issue