fix TestSyncBetweenTwoMailServers flakiness
This commit is contained in:
parent
cc20f61301
commit
8583eb2f37
|
@ -621,6 +621,12 @@ func (s *WhisperMailboxSuite) TestSyncBetweenTwoMailServers() {
|
|||
|
||||
// get messages
|
||||
messages := s.getMessagesByMessageFilterID(clientRPCClient, messageFilterID)
|
||||
// call once again because some messages can be delievered later
|
||||
time.Sleep(time.Millisecond * 500)
|
||||
messages = append(
|
||||
messages,
|
||||
s.getMessagesByMessageFilterID(clientRPCClient, messageFilterID)...)
|
||||
|
||||
s.Require().Len(messages, envelopesCount)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue