From 0fec3e7f2ec142154d4b55ecc0dc087038666a3e Mon Sep 17 00:00:00 2001 From: Vlad Date: Fri, 15 Dec 2017 18:47:22 +0200 Subject: [PATCH] whisper: test fix - wait for message delivery --- whisper/whisperv6/peer_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/whisper/whisperv6/peer_test.go b/whisper/whisperv6/peer_test.go index 2c5aa468ab..7dd93238c8 100644 --- a/whisper/whisperv6/peer_test.go +++ b/whisper/whisperv6/peer_test.go @@ -323,7 +323,9 @@ func powReqExchange(t *testing.T) { const pow float64 = 7777777.0 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 for i, node := range nodes {