fix p2p permission refresh during load tests

This commit is contained in:
richjohnrambo
2026-09-27 12:53:09 +08:00
parent a57d1e8d4a
commit f9f7321b11
9 changed files with 269 additions and 15 deletions
+4
View File
@@ -818,6 +818,10 @@ func TestHandleBroadcastDataMissingWritePermission(t *testing.T) {
pud := helper.topic.perUser[uid1]
pud.modeGiven = types.ModeRead | types.ModeJoin
helper.topic.perUser[uid1] = pud
helper.ss.EXPECT().Get(types.TenantID(1), topicName, uid1, true).Return(&types.Subscription{
TenantID: 1, User: uid1.String(), Topic: topicName,
ModeWant: pud.modeWant, ModeGiven: pud.modeGiven,
}, nil)
// Make test message.
from := helper.uids[0].UserId()