mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
swarm/storage: Add const dependent test params to gc ordered test
This commit is contained in:
parent
50df43c670
commit
9f7b0f5813
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue