diff --git a/swarm/storage/ldbstore_test.go b/swarm/storage/ldbstore_test.go index 1e0ca887d1..59fcc6f509 100644 --- a/swarm/storage/ldbstore_test.go +++ b/swarm/storage/ldbstore_test.go @@ -343,9 +343,9 @@ func TestLDBStoreCollectGarbage(t *testing.T) { // TestLDBStoreCollectGarbageOrdered checks if the most recently added chunks according to capacity are left after garbage collection func TestLDBStoreCollectGarbageOrdered(t *testing.T) { - capacity := 10000 - chunkCount := 20000 gcThreshold := int(maxGCitems * gcArrayFreeRatio) + capacity := maxGCitems * 2 + chunkCount := capacity * 2 hasher := MakeHashFunc(DefaultHash)() writeBatchTolerance := 128 // according to log ldb seems to write in batches of 6