diff --git a/triedb/pathdb/history_state_test.go b/triedb/pathdb/history_state_test.go index 5c3026a571..3e75d3baa8 100644 --- a/triedb/pathdb/history_state_test.go +++ b/triedb/pathdb/history_state_test.go @@ -244,8 +244,8 @@ func TestTruncateOutOfRange(t *testing.T) { target uint64 expErr error }{ - {0, head, nil}, // nothing to delete - {0, head + 1, errHeadTruncationOutOfRange}, + {0, head, nil}, // nothing to delete + {0, head + 1, nil}, // gracefully handled after unclean shutdown {0, tail - 1, errHeadTruncationOutOfRange}, {1, tail, nil}, // nothing to delete {1, head + 1, errTailTruncationOutOfRange},