From 9f7b0f5813bae2f243ef56fb758581f49bd0c936 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 1 Oct 2018 09:50:26 +0200 Subject: [PATCH] swarm/storage: Add const dependent test params to gc ordered test --- swarm/storage/ldbstore_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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