diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fec65fb2..7ec9f9eba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## master / unreleased - [CHANGE] `NewLeveledCompactor` takes a context so that a compaction is canceled when closing the db. - + - [ENHANCEMENT] When closing the db any running compaction will be cancelled so it doesn't block. ## 0.3.0 diff --git a/compact_test.go b/compact_test.go index 36bcb220c..3b63db313 100644 --- a/compact_test.go +++ b/compact_test.go @@ -775,6 +775,6 @@ func TestCancelCompactions(t *testing.T) { start := time.Now() <-dbClosed actT := time.Since(start) - expT := time.Duration(50000000) + expT := time.Duration(100000000) testutil.Assert(t, actT < expT, "closing the db took more than expected. exp: <%v, act: %v", expT, actT) }