fix: missing fields in Communtiy CreateDeepCopy (#4718)
This commit is contained in:
parent
432bfeea2f
commit
5e905518aa
|
@ -2127,11 +2127,14 @@ func (o *Community) CreateDeepCopy() *Community {
|
|||
Verified: o.config.Verified,
|
||||
Spectated: o.config.Spectated,
|
||||
Muted: o.config.Muted,
|
||||
MuteTill: o.config.MuteTill,
|
||||
Logger: o.config.Logger,
|
||||
RequestedToJoinAt: o.config.RequestedToJoinAt,
|
||||
RequestsToJoin: o.config.RequestsToJoin,
|
||||
MemberIdentity: o.config.MemberIdentity,
|
||||
EventsData: o.config.EventsData,
|
||||
Shard: o.config.Shard,
|
||||
PubsubTopicPrivateKey: o.config.PubsubTopicPrivateKey,
|
||||
LastOpenedAt: o.config.LastOpenedAt,
|
||||
},
|
||||
timesource: o.timesource,
|
||||
|
|
|
@ -642,9 +642,15 @@ func (s *MessengerStoreNodeRequestSuite) TestRequestShardAndCommunityInfo() {
|
|||
Shard: expectedShard,
|
||||
}
|
||||
|
||||
shardTopic := transport.CommunityShardInfoTopic(community.IDString())
|
||||
contentContentTopic := wakuV2common.BytesToTopic(transport.ToTopic(shardTopic))
|
||||
storeNodeSubscription := s.setupStoreNodeEnvelopesWatcher(&contentContentTopic)
|
||||
|
||||
_, err := s.owner.SetCommunityShard(shardRequest)
|
||||
s.Require().NoError(err)
|
||||
|
||||
s.waitForEnvelopes(storeNodeSubscription, 1)
|
||||
|
||||
s.waitForAvailableStoreNode(s.bob)
|
||||
|
||||
communityShard := community.CommunityShard()
|
||||
|
|
Loading…
Reference in New Issue