triedb/pathdb: changed the test code to check for verifying state (#29150)

Co-authored-by: this-is-iron <iron@superblock.co>
pull/28940/head
psogv0308 9 months ago committed by GitHub
parent 679a27a2b3
commit 35cebc1687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      triedb/pathdb/database_test.go

@ -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")

Loading…
Cancel
Save