fixes after code review

This commit is contained in:
Evgeny Danienko 2018-03-26 19:53:55 +03:00
parent de0c03ca4e
commit a90be3c0de
No known key found for this signature in database
GPG Key ID: BC8C34D8B45BECBF
1 changed files with 2 additions and 3 deletions

View File

@ -280,8 +280,8 @@ func (s *WhisperMailboxSuite) TestSendMessageWithoutSubscription() {
aliceBackend, stop := s.startBackend("alice") aliceBackend, stop := s.startBackend("alice")
defer stop() defer stop()
// we need to wain >= whisper.DefaultSyncAllowance seconds to update // we need to wait >= whisper.DefaultSyncAllowance seconds to update Bloom filter tolerated
time.Sleep(12 * time.Second) time.Sleep((whisper.DefaultSyncAllowance + 1) * time.Second)
//get whisper service //get whisper service
aliceWhisperService, err := aliceBackend.NodeManager().WhisperService() aliceWhisperService, err := aliceBackend.NodeManager().WhisperService()
@ -298,7 +298,6 @@ func (s *WhisperMailboxSuite) TestSendMessageWithoutSubscription() {
//alice send message to group chat //alice send message to group chat
helloWorldMessage := hexutil.Encode([]byte("Hello world!")) helloWorldMessage := hexutil.Encode([]byte("Hello world!"))
s.postMessageToGroup(aliceRPCClient, groupChatKeyID, groupChatTopic.String(), helloWorldMessage) 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 { func newGroupChatParams(symkey []byte, topic whisper.TopicType) groupChatParams {