Fix timeout issues with TestRequestMessagesSuccess (#1091)

This commit is contained in:
Adrià Cidre 2018-07-11 16:42:51 +02:00 committed by GitHub
parent ef7da275d4
commit d61c39bbd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,8 +245,8 @@ func (s *ShhExtSuite) TestRequestMessagesSuccess() {
defer func() { s.NoError(mailNode.Stop()) }() defer func() { s.NoError(mailNode.Stop()) }()
// add mailPeer as a peer // add mailPeer as a peer
aNode.Server().AddPeer(mailNode.Server().Self())
waitErr := helpers.WaitForPeerAsync(aNode.Server(), mailNode.Server().Self().String(), p2p.PeerEventTypeAdd, time.Second) waitErr := helpers.WaitForPeerAsync(aNode.Server(), mailNode.Server().Self().String(), p2p.PeerEventTypeAdd, time.Second)
aNode.Server().AddPeer(mailNode.Server().Self())
s.NoError(<-waitErr) s.NoError(<-waitErr)
var hash []byte var hash []byte