swarm/storage: Add const dependent test params to gc ordered test

This commit is contained in:
lash 2018-10-01 09:50:26 +02:00
parent 50df43c670
commit 9f7b0f5813

View file

@ -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