add messagepool to test node constructor
This commit is contained in:
parent
7f234809fc
commit
c877166b4a
@ -462,13 +462,16 @@ func mockSbBuilderOpts(t *testing.T, fullOpts []test.FullNodeOpts, storage []tes
|
|||||||
genesis = node.Override(new(modules.Genesis), modules.LoadGenesis(genbuf.Bytes()))
|
genesis = node.Override(new(modules.Genesis), modules.LoadGenesis(genbuf.Bytes()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r := repo.NewMemory(nil)
|
||||||
|
|
||||||
stop, err := node.New(ctx,
|
stop, err := node.New(ctx,
|
||||||
node.FullAPI(&fulls[i].FullNode, node.Lite(fullOpts[i].Lite)),
|
node.FullAPI(&fulls[i].FullNode, node.Lite(fullOpts[i].Lite)),
|
||||||
node.Online(),
|
node.Online(),
|
||||||
node.Repo(repo.NewMemory(nil)),
|
node.Repo(r),
|
||||||
node.MockHost(mn),
|
node.MockHost(mn),
|
||||||
node.Test(),
|
node.Test(),
|
||||||
|
|
||||||
|
node.Override(new(messagepool.Provider), messagepool.NewProvider),
|
||||||
node.Override(new(ffiwrapper.Verifier), mock.MockVerifier),
|
node.Override(new(ffiwrapper.Verifier), mock.MockVerifier),
|
||||||
|
|
||||||
// so that we subscribe to pubsub topics immediately
|
// so that we subscribe to pubsub topics immediately
|
||||||
|
Loading…
Reference in New Issue
Block a user