Skip to content

Commit

Permalink
core: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Jan 31, 2024
1 parent 0fde562 commit 47dcbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/geth/pruneblock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ func BlockchainCreator(t *testing.T, chaindbPath, AncientPath string, blockRemai

// Force run a freeze cycle
type freezer interface {
Freeze(threshold uint64) error
Freeze() error
Ancients() (uint64, error)
}
db.(freezer).Freeze(10)
db.(freezer).Freeze()

frozen, err := db.Ancients()
//make sure there're frozen items
Expand Down

0 comments on commit 47dcbdc

Please sign in to comment.