mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
whisper: TestSimulation optimized
This commit is contained in:
parent
1501a11750
commit
8e6fe2c9cf
1 changed files with 10 additions and 5 deletions
|
|
@ -156,13 +156,18 @@ func initialize(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
err = node.server.Start()
|
||||
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.")
|
||||
}
|
||||
}
|
||||
|
||||
func stopServers() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue