From 1a65a5048a23d1d8e2d667e1a1bc0541eeff7078 Mon Sep 17 00:00:00 2001 From: alwx Date: Mon, 22 Apr 2024 14:12:59 +0200 Subject: [PATCH] fix_: tests --- protocol/peersyncing/peersyncing_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocol/peersyncing/peersyncing_test.go b/protocol/peersyncing/peersyncing_test.go index 6abe992c418..7f0c6407fe7 100644 --- a/protocol/peersyncing/peersyncing_test.go +++ b/protocol/peersyncing/peersyncing_test.go @@ -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) }