From 9faa3d5fd7c6fe39cc5a770ab247f698e0256083 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 23 Jul 2021 12:07:38 +0300 Subject: [PATCH] adjust compaction test with badger to hit the db --- blockstore/splitstore/splitstore_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blockstore/splitstore/splitstore_test.go b/blockstore/splitstore/splitstore_test.go index 1d285b5a5..b945eb90b 100644 --- a/blockstore/splitstore/splitstore_test.go +++ b/blockstore/splitstore/splitstore_test.go @@ -211,6 +211,11 @@ func TestSplitStoreCompaction(t *testing.T) { } func TestSplitStoreCompactionWithBadger(t *testing.T) { + bs := badgerMarkSetBatchSize + badgerMarkSetBatchSize = 1 + t.Cleanup(func() { + badgerMarkSetBatchSize = bs + }) testSplitStore(t, &Config{MarkSetType: "badger"}) }