From ec1238e020ce69868401ba0652d252eb10935089 Mon Sep 17 00:00:00 2001 From: osmaczko <33099791+osmaczko@users.noreply.github.com> Date: Fri, 9 Feb 2024 19:23:24 +0100 Subject: [PATCH] fix: adapt to `response.RequestsToJoinCommunity` interface change (#4705) fixes tests build --- protocol/communities_events_eventual_consistency_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/communities_events_eventual_consistency_test.go b/protocol/communities_events_eventual_consistency_test.go index 20b7ca23f..88243541c 100644 --- a/protocol/communities_events_eventual_consistency_test.go +++ b/protocol/communities_events_eventual_consistency_test.go @@ -86,12 +86,12 @@ func (s *CommunityEventsEventualConsistencySuite) TestAdminAcceptRejectRequestTo response, err := user.RequestToJoinCommunity(requestToJoin) s.Require().NoError(err) s.Require().NotNil(response) - s.Require().Len(response.RequestsToJoinCommunity, 1) + s.Require().Len(response.RequestsToJoinCommunity(), 1) - sentRequest := response.RequestsToJoinCommunity[0] + sentRequest := response.RequestsToJoinCommunity()[0] checkRequestToJoin := func(r *MessengerResponse) bool { - for _, request := range r.RequestsToJoinCommunity { + for _, request := range r.RequestsToJoinCommunity() { if request.ENSName == requestToJoin.ENSName { return true } @@ -106,7 +106,7 @@ func (s *CommunityEventsEventualConsistencySuite) TestAdminAcceptRejectRequestTo "event sender did not receive community request to join", ) s.Require().NoError(err) - s.Require().Len(response.RequestsToJoinCommunity, 1) + s.Require().Len(response.RequestsToJoinCommunity(), 1) // accept request to join acceptRequestToJoin := &requests.AcceptRequestToJoinCommunity{ID: sentRequest.ID}