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 dacd9eb commit 1a65a50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions protocol/peersyncing/peersyncing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ func (s *PeerSyncingSuite) TestOrderAndLimit() {
byChatID, err := s.p.AvailableMessagesMapByChatIDs([][]byte{testCommunityID}, 10)

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

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

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

0 comments on commit 1a65a50

Please sign in to comment.