From 4aed2a5e128518479d30adfb93395f0114d4a5e8 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Mon, 4 Mar 2019 11:19:52 -0500 Subject: [PATCH] swarm/network/stream: store kademlia in bucket --- swarm/network/stream/common_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swarm/network/stream/common_test.go b/swarm/network/stream/common_test.go index afd08d2754..ec29e16e33 100644 --- a/swarm/network/stream/common_test.go +++ b/swarm/network/stream/common_test.go @@ -134,6 +134,9 @@ func netStoreAndDeliveryWithAddr(ctx *adapters.ServiceContext, bucket *sync.Map, bucket.Store(bucketKeyDB, netStore) bucket.Store(bucketKeyDelivery, delivery) bucket.Store(bucketKeyFileStore, fileStore) + // for the kademlia object, we use the global key from the simulation package, + // as the simulation will try to access it in the WaitTillHealthy with that key + bucket.Store(simulation.BucketKeyKademlia, kad) cleanup := func() { netStore.Close()