Ignore full node flag when in topic mode
This commit is contained in:
parent
9ee0e52ea3
commit
fd4c627c2e
|
@ -5,9 +5,6 @@ import (
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/node"
|
|
||||||
"github.com/ethereum/go-ethereum/p2p"
|
|
||||||
|
|
||||||
prom "github.com/prometheus/client_golang/prometheus"
|
prom "github.com/prometheus/client_golang/prometheus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -876,6 +876,7 @@ func (s *MessengerSuite) TestRetrieveTheirPrivateGroupChat() {
|
||||||
// Test receiving a message on an existing private group chat, if messages
|
// 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
|
// are not wrapped this will fail as they'll likely come out of order
|
||||||
// NOTE: Disabling this as too flaky
|
// NOTE: Disabling this as too flaky
|
||||||
|
/*
|
||||||
func (s *MessengerSuite) testRetrieveTheirPrivateGroupWrappedMessageChat() {
|
func (s *MessengerSuite) testRetrieveTheirPrivateGroupWrappedMessageChat() {
|
||||||
var response *MessengerResponse
|
var response *MessengerResponse
|
||||||
theirMessenger := s.newMessenger(s.shh)
|
theirMessenger := s.newMessenger(s.shh)
|
||||||
|
@ -932,6 +933,7 @@ func (s *MessengerSuite) testRetrieveTheirPrivateGroupWrappedMessageChat() {
|
||||||
// It sets the last message
|
// It sets the last message
|
||||||
s.Require().NotNil(actualChat.LastMessage)
|
s.Require().NotNil(actualChat.LastMessage)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func (s *MessengerSuite) TestChatPersistencePublic() {
|
func (s *MessengerSuite) TestChatPersistencePublic() {
|
||||||
chat := Chat{
|
chat := Chat{
|
||||||
|
|
|
@ -438,7 +438,7 @@ type RequestMessagesSyncSuite struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: Disabling this for now as too flaky
|
// 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
|
// intentionally discarding all requests, so that request will timeout
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
|
@ -456,7 +456,7 @@ func (s *RequestMessagesSyncSuite) testExpired() {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
s.Require().EqualError(err, "failed to request messages after 1 retries")
|
s.Require().EqualError(err, "failed to request messages after 1 retries")
|
||||||
}
|
}*/
|
||||||
|
|
||||||
func (s *RequestMessagesSyncSuite) testCompletedFromAttempt(target int) {
|
func (s *RequestMessagesSyncSuite) testCompletedFromAttempt(target int) {
|
||||||
const cursorSize = 36 // taken from mailserver_response.go from whisper package
|
const cursorSize = 36 // taken from mailserver_response.go from whisper package
|
||||||
|
|
|
@ -336,7 +336,8 @@ type RequestMessagesSyncSuite struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: Disabling this for now as too flaky
|
// 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
|
// intentionally discarding all requests, so that request will timeout
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
|
@ -356,6 +357,7 @@ func (s *RequestMessagesSyncSuite) testExpired() {
|
||||||
)
|
)
|
||||||
s.Require().EqualError(err, "failed to request messages after 1 retries")
|
s.Require().EqualError(err, "failed to request messages after 1 retries")
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func (s *RequestMessagesSyncSuite) testCompletedFromAttempt(target int) {
|
func (s *RequestMessagesSyncSuite) testCompletedFromAttempt(target int) {
|
||||||
const cursorSize = 36 // taken from mailserver_response.go from waku package
|
const cursorSize = 36 // taken from mailserver_response.go from waku package
|
||||||
|
|
Loading…
Reference in New Issue