Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
osmaczko committed Feb 5, 2025
1 parent 92b596b commit bd73a40
Show file tree
Hide file tree
Showing 18 changed files with 41 additions and 18 deletions.
4 changes: 3 additions & 1 deletion protocol/common/message_sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
wakutypes "github.com/status-im/status-go/waku/types"
"github.com/status-im/status-go/wakuv2"

"github.com/libp2p/go-libp2p/core/peer"

"github.com/golang/protobuf/proto"

"github.com/stretchr/testify/suite"
Expand Down Expand Up @@ -75,7 +77,7 @@ func (s *MessageSenderSuite) SetupTest() {
s.logger,
database,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/communities_messenger_test_suite_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/ecdsa"
"math/big"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -55,7 +56,7 @@ func (s *CommunitiesMessengerTestSuiteBase) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package protocol
import (
"crypto/ecdsa"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"

"go.uber.org/zap"
Expand All @@ -27,7 +28,7 @@ func (s *MessengerBaseTestSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_delete_message_for_me_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -66,7 +67,7 @@ func (s *MessengerDeleteMessageForMeSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_identity_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"time"

"github.com/cenkalti/backoff/v3"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"
Expand Down Expand Up @@ -51,7 +52,7 @@ func (s *MessengerProfilePictureHandlerSuite) SetupSuite() {
s.logger.Named("Waku"),
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_peersyncing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"
"time"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -49,7 +50,7 @@ func (s *MessengerPeersyncingSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
4 changes: 3 additions & 1 deletion protocol/messenger_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"context"
"testing"

"github.com/libp2p/go-libp2p/core/peer"

"github.com/status-im/status-go/wakuv2"

"github.com/status-im/status-go/eth-node/crypto"
Expand Down Expand Up @@ -34,7 +36,7 @@ func (s *MessengerSettingsSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_sync_chat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"errors"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -67,7 +68,7 @@ func (s *MessengerSyncChatSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_sync_customization_color_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -41,7 +42,7 @@ func (s *MessengerSyncAccountCustomizationColorSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_sync_keycard_change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"crypto/ecdsa"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -44,7 +45,7 @@ func (s *MessengerSyncKeycardChangeSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_sync_keycards_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"crypto/ecdsa"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -44,7 +45,7 @@ func (s *MessengerSyncKeycardsStateSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_sync_saved_addresses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"sort"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -48,7 +49,7 @@ func (s *MessengerSyncSavedAddressesSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
3 changes: 2 additions & 1 deletion protocol/messenger_sync_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -87,7 +88,7 @@ func (s *MessengerSyncSettingsSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
4 changes: 3 additions & 1 deletion protocol/messenger_waku_wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (

"go.uber.org/zap"

"github.com/libp2p/go-libp2p/core/peer"

wakutypes "github.com/status-im/status-go/waku/types"
"github.com/status-im/status-go/wakuv2"
)
Expand Down Expand Up @@ -72,7 +74,7 @@ func newTestWakuWrapper(logger *zap.Logger) (*testWakuWrapper, error) {
logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion protocol/push_notification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"errors"
"testing"

"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/suite"
"go.uber.org/zap"

Expand Down Expand Up @@ -54,7 +55,7 @@ func (s *MessengerPushNotificationSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
4 changes: 3 additions & 1 deletion protocol/transport/filters_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"os"
"testing"

"github.com/libp2p/go-libp2p/core/peer"

"github.com/status-im/status-go/protocol/tt"
"github.com/status-im/status-go/wakuv2"

Expand Down Expand Up @@ -96,7 +98,7 @@ func (s *FiltersManagerSuite) SetupTest() {
s.logger,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
s.Require().NoError(err)
Expand Down
4 changes: 3 additions & 1 deletion services/wakuext/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"

"github.com/libp2p/go-libp2p/core/peer"

"github.com/ethereum/go-ethereum/event"
"github.com/status-im/status-go/appdatabase"
"github.com/status-im/status-go/eth-node/crypto"
Expand Down Expand Up @@ -41,7 +43,7 @@ func TestInitProtocol(t *testing.T) {
nil,
nil,
nil,
nil,
func([]byte, peer.ID, error) {},
nil,
)
require.NoError(t, err)
Expand Down
3 changes: 2 additions & 1 deletion wakuv1/waku_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/p2p/enode"

"github.com/status-im/status-go/waku/types"
"github.com/waku-org/go-waku/waku/v2/api/history"

"github.com/status-im/status-go/waku/types"
)

var notAvailableStr = "not available in WakuV1"
Expand Down

0 comments on commit bd73a40

Please sign in to comment.