mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix tests for guest accounts count (#14311)
Co-authored-by: Fedor Vitkovskiy <fedorvitkovskiy@pop-os.localdomain> Co-authored-by: mattermod <mattermod@users.noreply.github.com> Co-authored-by: Jesús Espino <jespinog@gmail.com> Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
@@ -3165,7 +3165,7 @@ func testUserStoreAnalyticsGetSystemAdminCount(t *testing.T, ss store.Store) {
|
||||
}
|
||||
|
||||
func testUserStoreAnalyticsGetGuestCount(t *testing.T, ss store.Store) {
|
||||
countBefore, err := ss.User().AnalyticsGetSystemAdminCount()
|
||||
countBefore, err := ss.User().AnalyticsGetGuestCount()
|
||||
require.Nil(t, err)
|
||||
|
||||
u1 := model.User{}
|
||||
@@ -3195,9 +3195,9 @@ func testUserStoreAnalyticsGetGuestCount(t *testing.T, ss store.Store) {
|
||||
require.Nil(t, err, "couldn't save user")
|
||||
defer func() { require.Nil(t, ss.User().PermanentDelete(u3.Id)) }()
|
||||
|
||||
result, err := ss.User().AnalyticsGetSystemAdminCount()
|
||||
result, err := ss.User().AnalyticsGetGuestCount()
|
||||
require.Nil(t, err)
|
||||
require.Equal(t, countBefore+1, result, "Did not get the expected number of system admins.")
|
||||
require.Equal(t, countBefore+1, result, "Did not get the expected number of guests.")
|
||||
}
|
||||
|
||||
func testUserStoreGetProfilesNotInTeam(t *testing.T, ss store.Store) {
|
||||
|
||||
Reference in New Issue
Block a user