Skip to content

Commit

Permalink
triedb/pathdb: changed the test code to check for verifying state (#2…
Browse files Browse the repository at this point in the history
…9150)

Co-authored-by: this-is-iron <[email protected]>
  • Loading branch information
psogv0308 and this-is-iron authored Mar 4, 2024
1 parent 679a27a commit 35cebc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion triedb/pathdb/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,11 @@ func TestDatabaseRollback(t *testing.T) {
if err := tester.db.Recover(parent, loader); err != nil {
t.Fatalf("Failed to revert db, err: %v", err)
}
tester.verifyState(parent)
if i > 0 {
if err := tester.verifyState(parent); err != nil {
t.Fatalf("Failed to verify state, err: %v", err)
}
}
}
if tester.db.tree.len() != 1 {
t.Fatal("Only disk layer is expected")
Expand Down

0 comments on commit 35cebc1

Please sign in to comment.