Ignore full node flag when in topic mode

This commit is contained in:
Andrea Maria Piana 2020-03-20 16:49:46 +01:00
parent 9ee0e52ea3
commit fd4c627c2e
4 changed files with 7 additions and 6 deletions

View File

@ -5,9 +5,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p"
prom "github.com/prometheus/client_golang/prometheus"
)

View File

@ -876,6 +876,7 @@ func (s *MessengerSuite) TestRetrieveTheirPrivateGroupChat() {
// Test receiving a message on an existing private group chat, if messages
// are not wrapped this will fail as they'll likely come out of order
// NOTE: Disabling this as too flaky
/*
func (s *MessengerSuite) testRetrieveTheirPrivateGroupWrappedMessageChat() {
var response *MessengerResponse
theirMessenger := s.newMessenger(s.shh)
@ -932,6 +933,7 @@ func (s *MessengerSuite) testRetrieveTheirPrivateGroupWrappedMessageChat() {
// It sets the last message
s.Require().NotNil(actualChat.LastMessage)
}
*/
func (s *MessengerSuite) TestChatPersistencePublic() {
chat := Chat{

View File

@ -438,7 +438,7 @@ type RequestMessagesSyncSuite struct {
}
// NOTE: Disabling this for now as too flaky
func (s *RequestMessagesSyncSuite) testExpired() {
/*func (s *RequestMessagesSyncSuite) TestExpired() {
// intentionally discarding all requests, so that request will timeout
go func() {
for {
@ -456,7 +456,7 @@ func (s *RequestMessagesSyncSuite) testExpired() {
},
)
s.Require().EqualError(err, "failed to request messages after 1 retries")
}
}*/
func (s *RequestMessagesSyncSuite) testCompletedFromAttempt(target int) {
const cursorSize = 36 // taken from mailserver_response.go from whisper package

View File

@ -336,7 +336,8 @@ type RequestMessagesSyncSuite struct {
}
// NOTE: Disabling this for now as too flaky
func (s *RequestMessagesSyncSuite) testExpired() {
/*
func (s *RequestMessagesSyncSuite) TestExpired() {
// intentionally discarding all requests, so that request will timeout
go func() {
for {
@ -356,6 +357,7 @@ func (s *RequestMessagesSyncSuite) testExpired() {
)
s.Require().EqualError(err, "failed to request messages after 1 retries")
}
*/
func (s *RequestMessagesSyncSuite) testCompletedFromAttempt(target int) {
const cursorSize = 36 // taken from mailserver_response.go from waku package