fix p2p permission refresh during load tests
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user