add messagepool to test node constructor

This commit is contained in:
Anton Evangelatov 2021-06-04 15:53:33 +02:00
parent 7f234809fc
commit c877166b4a

View File

@ -462,13 +462,16 @@ func mockSbBuilderOpts(t *testing.T, fullOpts []test.FullNodeOpts, storage []tes
genesis = node.Override(new(modules.Genesis), modules.LoadGenesis(genbuf.Bytes()))
}
r := repo.NewMemory(nil)
stop, err := node.New(ctx,
node.FullAPI(&fulls[i].FullNode, node.Lite(fullOpts[i].Lite)),
node.Online(),
node.Repo(repo.NewMemory(nil)),
node.Repo(r),
node.MockHost(mn),
node.Test(),
node.Override(new(messagepool.Provider), messagepool.NewProvider),
node.Override(new(ffiwrapper.Verifier), mock.MockVerifier),
// so that we subscribe to pubsub topics immediately