mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
whisper: TestSimulation optimized
This commit is contained in:
parent
1501a11750
commit
8e6fe2c9cf
1 changed files with 10 additions and 5 deletions
|
|
@ -156,12 +156,17 @@ func initialize(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
err = node.server.Start()
|
nodes[i] = &node
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("failed to start server %d.", i)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nodes[i] = &node
|
for i := 1; i < NumNodes; i++ {
|
||||||
|
go nodes[i].server.Start()
|
||||||
|
}
|
||||||
|
|
||||||
|
// we need to wait until the first node actually starts
|
||||||
|
err = nodes[0].server.Start()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatalf("failed to start the fisrt server.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue