From a90be3c0de830cfc2b504bdedb8ca44854d8411e Mon Sep 17 00:00:00 2001 From: Evgeny Danienko <6655321@bk.ru> Date: Mon, 26 Mar 2018 19:53:55 +0300 Subject: [PATCH] fixes after code review --- t/e2e/whisper/whisper_mailbox_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/e2e/whisper/whisper_mailbox_test.go b/t/e2e/whisper/whisper_mailbox_test.go index 1a215dce8..42abfa5e5 100644 --- a/t/e2e/whisper/whisper_mailbox_test.go +++ b/t/e2e/whisper/whisper_mailbox_test.go @@ -280,8 +280,8 @@ func (s *WhisperMailboxSuite) TestSendMessageWithoutSubscription() { aliceBackend, stop := s.startBackend("alice") defer stop() - // we need to wain >= whisper.DefaultSyncAllowance seconds to update - time.Sleep(12 * time.Second) + // we need to wait >= whisper.DefaultSyncAllowance seconds to update Bloom filter tolerated + time.Sleep((whisper.DefaultSyncAllowance + 1) * time.Second) //get whisper service aliceWhisperService, err := aliceBackend.NodeManager().WhisperService() @@ -298,7 +298,6 @@ func (s *WhisperMailboxSuite) TestSendMessageWithoutSubscription() { //alice send message to group chat helloWorldMessage := hexutil.Encode([]byte("Hello world!")) s.postMessageToGroup(aliceRPCClient, groupChatKeyID, groupChatTopic.String(), helloWorldMessage) - time.Sleep(5 * time.Second) //it need to receive envelopes by bob and charlie nodes } func newGroupChatParams(symkey []byte, topic whisper.TopicType) groupChatParams {