aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/simulations/network_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/simulations/network_test.go')
-rw-r--r--p2p/simulations/network_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/simulations/network_test.go b/p2p/simulations/network_test.go
index 2a062121b..f178bac50 100644
--- a/p2p/simulations/network_test.go
+++ b/p2p/simulations/network_test.go
@@ -41,7 +41,8 @@ func TestNetworkSimulation(t *testing.T) {
nodeCount := 20
ids := make([]discover.NodeID, nodeCount)
for i := 0; i < nodeCount; i++ {
- node, err := network.NewNode()
+ conf := adapters.RandomNodeConfig()
+ node, err := network.NewNodeWithConfig(conf)
if err != nil {
t.Fatalf("error creating node: %s", err)
}