swarm/storage: Delint

This commit is contained in:
lash 2018-10-12 11:47:47 +02:00
parent 47db1fa245
commit 2bfa37cdb3

View file

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