whisper: test fix - wait for message delivery

This commit is contained in:
Vlad 2017-12-15 18:47:22 +02:00
parent 8e6fe2c9cf
commit 0fec3e7f2e

View file

@ -323,7 +323,9 @@ func powReqExchange(t *testing.T) {
const pow float64 = 7777777.0 const pow float64 = 7777777.0
nodes[0].shh.SetMinimumPoW(pow, true) nodes[0].shh.SetMinimumPoW(pow, true)
time.Sleep(5 * time.Millisecond)
// wait until all the messages are delivered
time.Sleep(64 * time.Millisecond)
cnt := 0 cnt := 0
for i, node := range nodes { for i, node := range nodes {