Skip to content

Commit d430e29

Browse files
committed
set mock statenotifier in testServiceOptsWithDB
1 parent 92e139c commit d430e29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

beacon-chain/blockchain/mock_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package blockchain
33
import (
44
"testing"
55

6+
mock "github.com/prysmaticlabs/prysm/v5/beacon-chain/blockchain/testing"
67
testDB "github.com/prysmaticlabs/prysm/v5/beacon-chain/db/testing"
78
doublylinkedtree "github.com/prysmaticlabs/prysm/v5/beacon-chain/forkchoice/doubly-linked-tree"
89
"github.com/prysmaticlabs/prysm/v5/beacon-chain/startup"
@@ -18,6 +19,7 @@ func testServiceOptsWithDB(t *testing.T) []Option {
1819
WithStateGen(stategen.New(beaconDB, fcs)),
1920
WithForkChoiceStore(fcs),
2021
WithClockSynchronizer(cs),
22+
WithStateNotifier(&mock.MockStateNotifier{RecordEvents: true}),
2123
}
2224
}
2325

0 commit comments

Comments
 (0)