Skip to content

Commit

Permalink
fix_: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Apr 22, 2024
1 parent 1a65a50 commit f86f812
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions protocol/peersyncing/peersyncing_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package peersyncing

import (
"github.com/status-im/status-go/eth-node/types"
"testing"

"github.com/stretchr/testify/suite"
Expand Down Expand Up @@ -116,11 +117,11 @@ func (s *PeerSyncingSuite) TestOrderAndLimit() {

s.Require().NoError(err)
s.Require().Len(byChatID, 1)
s.Require().Len(byChatID[string(testCommunityID)], 4)
s.Require().Len(byChatID[types.Bytes2Hex(testCommunityID)], 4)

byChatID, err = s.p.AvailableMessagesMapByChatIDs([][]byte{testCommunityID}, 3)

s.Require().NoError(err)
s.Require().Len(byChatID, 1)
s.Require().Len(byChatID[string(testCommunityID)], 3)
s.Require().Len(byChatID[types.Bytes2Hex(testCommunityID)], 3)
}

0 comments on commit f86f812

Please sign in to comment.