From 32d57f202a75acdbefc0588b625b02274d6b97ba Mon Sep 17 00:00:00 2001 From: Jan Winkelmann Date: Sat, 19 Nov 2016 23:13:16 +0100 Subject: [PATCH] update to go-libp2p-netutil --- floodsub_test.go | 6 ++++-- package.json | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/floodsub_test.go b/floodsub_test.go index f99a88a..18885ef 100644 --- a/floodsub_test.go +++ b/floodsub_test.go @@ -10,8 +10,9 @@ import ( "time" host "github.com/libp2p/go-libp2p-host" + netutil "github.com/libp2p/go-libp2p-netutil" peer "github.com/libp2p/go-libp2p-peer" - netutil "github.com/libp2p/go-libp2p/p2p/test/util" + bhost "github.com/libp2p/go-libp2p/p2p/host/basic" ) func checkMessageRouting(t *testing.T, topic string, pubs []*PubSub, subs []*Subscription) { @@ -34,7 +35,8 @@ func getNetHosts(t *testing.T, ctx context.Context, n int) []host.Host { var out []host.Host for i := 0; i < n; i++ { - h := netutil.GenHostSwarm(t, ctx) + netw := netutil.GenSwarmNetwork(t, ctx) + h := bhost.New(netw) out = append(out, h) } diff --git a/package.json b/package.json index 6855893..afb3ca4 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,12 @@ "hash": "Qmb6UFbVu1grhv5o5KnouvtZ6cqdrjXj6zLejAHWunxgCt", "name": "go-libp2p-host", "version": "1.3.0" + }, + { + "author": "whyrusleeping", + "hash": "QmbUDXBMqSe4VCRgTMeAfyBh1T3GBnELEBXobZDL7cjVgs", + "name": "go-libp2p-netutil", + "version": "0.1.1" } ], "gxVersion": "0.9.0",