mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/storage: Delint
This commit is contained in:
parent
47db1fa245
commit
2bfa37cdb3
1 changed files with 1 additions and 2 deletions
|
|
@ -302,10 +302,9 @@ func TestLDBStoreWithoutCollectGarbage(t *testing.T) {
|
||||||
// retrieve only some of them, because garbage collection must have partially cleared the store
|
// retrieve only some of them, because garbage collection must have partially cleared the store
|
||||||
// Also tests that we can delete chunks and that we can trigger garbage collection
|
// Also tests that we can delete chunks and that we can trigger garbage collection
|
||||||
func TestLDBStoreCollectGarbage(t *testing.T) {
|
func TestLDBStoreCollectGarbage(t *testing.T) {
|
||||||
var cap int
|
|
||||||
|
|
||||||
// below max ronud
|
// below max ronud
|
||||||
cap = defaultMaxGCRound / 2
|
cap := defaultMaxGCRound / 2
|
||||||
t.Run(fmt.Sprintf("A/%d/%d", cap, cap*4), testLDBStoreCollectGarbage)
|
t.Run(fmt.Sprintf("A/%d/%d", cap, cap*4), testLDBStoreCollectGarbage)
|
||||||
t.Run(fmt.Sprintf("B/%d/%d", cap, cap*4), testLDBStoreRemoveThenCollectGarbage)
|
t.Run(fmt.Sprintf("B/%d/%d", cap, cap*4), testLDBStoreRemoveThenCollectGarbage)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue