fix TestSyncBetweenTwoMailServers flakiness

This commit is contained in:
Adam Babik 2019-02-22 10:24:06 +01:00
parent cc20f61301
commit 8583eb2f37
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
1 changed files with 6 additions and 0 deletions

View File

@ -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)
}