merged from gramsrv upstream
This commit is contained in:
parent
79c64ee916
commit
21a0856587
651 changed files with 54774 additions and 4590 deletions
|
|
@ -1144,6 +1144,7 @@ func TestDispatchAnnouncesPresenceWhenSessionIdentityRestored(t *testing.T) {
|
|||
Auth: auth,
|
||||
Dialogs: appdialogs.NewService(dialogs),
|
||||
Sessions: sessions,
|
||||
Users: staticUsersService{user: bob},
|
||||
}, zaptest.NewLogger(t), clock.System)
|
||||
req := &tg.HelpGetConfigRequest{}
|
||||
|
||||
|
|
@ -1196,6 +1197,7 @@ func TestDispatchPushesOnlinePeerStatusesToRestoredSession(t *testing.T) {
|
|||
Auth: auth,
|
||||
Dialogs: appdialogs.NewService(dialogs),
|
||||
Sessions: sessions,
|
||||
Users: mapUsersService{users: map[int64]domain.User{alice.ID: alice, bob.ID: bob}},
|
||||
}, zaptest.NewLogger(t), clock.System)
|
||||
if ok, err := r.onAccountUpdateStatus(WithSessionID(WithUserID(ctx, bob.ID), 22), false); err != nil || !ok {
|
||||
t.Fatalf("bob account.updateStatus online = %v, %v", ok, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue