diff --git a/CHANGELOG.md b/CHANGELOG.md index 59784ad6a..ec6a695c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog - [#965](https://github.com/cosmos/iavl/pull/965) Use expected interface for expected IAVL `Logger`. +- [#967](https://github.com/cosmos/iavl/pull/967) Close the pruning process when the nodeDB is closed. ## v1.2.0 May 13, 2024 diff --git a/nodedb_test.go b/nodedb_test.go index c29d5f766..3e88c354f 100644 --- a/nodedb_test.go +++ b/nodedb_test.go @@ -442,6 +442,6 @@ func TestCloseNodeDB(t *testing.T) { defer db.Close() opts := DefaultOptions() opts.AsyncPruning = true - ndb := newNodeDB(db, 0, opts, log.NewNopLogger()) - ndb.Close() + ndb := newNodeDB(db, 0, opts, NewNopLogger()) + require.NoError(t, ndb.Close()) }