Skip to content

Commit d1c7fab

Browse files
committed
Linted and fixed tests
1 parent 4d8af1a commit d1c7fab

File tree

4 files changed

+2
-42
lines changed

4 files changed

+2
-42
lines changed

consensus/integration/nodes_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,6 @@ func createNode(
427427
notifier.AddConsumer(counterConsumer)
428428
notifier.AddConsumer(logConsumer)
429429

430-
cleaner := &storagemock.Cleaner{}
431-
cleaner.On("RunGC")
432-
433430
require.Equal(t, participant.nodeInfo.NodeID, localID)
434431
privateKeys, err := participant.nodeInfo.PrivateKeys()
435432
require.NoError(t, err)
@@ -589,7 +586,6 @@ func createNode(
589586
metricsCollector,
590587
metricsCollector,
591588
tracer,
592-
cleaner,
593589
headersDB,
594590
payloadsDB,
595591
fullState,

engine/consensus/compliance/core_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ type CommonSuite struct {
6161
me *module.Local
6262
metrics *metrics.NoopCollector
6363
tracer realModule.Tracer
64-
cleaner *storage.Cleaner
6564
headers *storage.Headers
6665
payloads *storage.Payloads
6766
state *protocol.ParticipantState
@@ -111,10 +110,6 @@ func (cs *CommonSuite) SetupTest() {
111110
},
112111
)
113112

114-
// set up storage cleaner
115-
cs.cleaner = &storage.Cleaner{}
116-
cs.cleaner.On("RunGC").Return()
117-
118113
// set up header storage mock
119114
cs.headers = &storage.Headers{}
120115
cs.headers.On("Store", mock.Anything).Return(
@@ -257,7 +252,6 @@ func (cs *CommonSuite) SetupTest() {
257252
cs.metrics,
258253
cs.metrics,
259254
cs.tracer,
260-
cs.cleaner,
261255
cs.headers,
262256
cs.payloads,
263257
cs.state,

storage/badger/cleaner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
package badger
44

55
import (
6-
"github.com/onflow/flow-go/module/component"
7-
"github.com/onflow/flow-go/module/irrecoverable"
86
"math/rand"
97
"time"
108

119
"github.com/dgraph-io/badger/v2"
1210
"github.com/rs/zerolog"
1311

1412
"github.com/onflow/flow-go/module"
13+
"github.com/onflow/flow-go/module/component"
14+
"github.com/onflow/flow-go/module/irrecoverable"
1515
)
1616

1717
// Cleaner uses component.ComponentManager to implement module.Startable and module.ReadyDoneAware

storage/mock/cleaner.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)