diff --git a/services/shhext/service_test.go b/services/shhext/service_test.go index 87165f7a6..6c41e68c2 100644 --- a/services/shhext/service_test.go +++ b/services/shhext/service_test.go @@ -245,8 +245,8 @@ func (s *ShhExtSuite) TestRequestMessagesSuccess() { defer func() { s.NoError(mailNode.Stop()) }() // add mailPeer as a peer - aNode.Server().AddPeer(mailNode.Server().Self()) waitErr := helpers.WaitForPeerAsync(aNode.Server(), mailNode.Server().Self().String(), p2p.PeerEventTypeAdd, time.Second) + aNode.Server().AddPeer(mailNode.Server().Self()) s.NoError(<-waitErr) var hash []byte