Fixed errcheck issues in server/channels/api4/usage_test.go (#28644)

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
This commit is contained in:
Arya Khochare 2024-10-09 16:58:36 +05:30 committed by GitHub
parent b49d86c24d
commit 90ceb4a5e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -96,7 +96,6 @@ issues:
channels/api4/team_local.go|\
channels/api4/team_test.go|\
channels/api4/upload_test.go|\
channels/api4/usage_test.go|\
channels/api4/user.go|\
channels/api4/user_local.go|\
channels/api4/user_test.go|\

View File

@ -19,7 +19,8 @@ func TestGetPostsUsage(t *testing.T) {
th := Setup(t)
defer th.TearDown()
th.Client.Logout(context.Background())
_, err := th.Client.Logout(context.Background())
require.NoError(t, err)
usage, r, err := th.Client.GetPostsUsage(context.Background())
assert.Error(t, err)
@ -57,7 +58,8 @@ func TestGetStorageUsage(t *testing.T) {
th := Setup(t)
defer th.TearDown()
th.Client.Logout(context.Background())
_, err := th.Client.Logout(context.Background())
require.NoError(t, err)
usage, r, err := th.Client.GetStorageUsage(context.Background())
assert.Error(t, err)
@ -71,7 +73,8 @@ func TestGetTeamsUsage(t *testing.T) {
th := Setup(t)
defer th.TearDown()
th.Client.Logout(context.Background())
_, err := th.Client.Logout(context.Background())
require.NoError(t, err)
usage, r, err := th.Client.GetTeamsUsage(context.Background())
assert.Error(t, err)