diff --git a/core/coreapi/test/api_test.go b/core/coreapi/test/api_test.go index f3e3903bc289..153a8c7cf31b 100644 --- a/core/coreapi/test/api_test.go +++ b/core/coreapi/test/api_test.go @@ -13,6 +13,7 @@ import ( "github.com/ipfs/go-ipfs/core/bootstrap" "github.com/ipfs/go-ipfs/core/coreapi" mock "github.com/ipfs/go-ipfs/core/mock" + "github.com/ipfs/go-ipfs/core/node/libp2p" "github.com/ipfs/go-ipfs/keystore" "github.com/ipfs/go-ipfs/repo" @@ -78,9 +79,10 @@ func (NodeProvider) MakeAPISwarm(ctx context.Context, fullIdentity bool, n int) } node, err := core.NewNode(ctx, &core.BuildCfg{ - Repo: r, - Host: mock.MockHostOption(mn), - Online: fullIdentity, + Routing: libp2p.DHTServerOption, + Repo: r, + Host: mock.MockHostOption(mn), + Online: fullIdentity, ExtraOpts: map[string]bool{ "pubsub": true, },