mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
parent
b49d86c24d
commit
90ceb4a5e3
@ -96,7 +96,6 @@ issues:
|
|||||||
channels/api4/team_local.go|\
|
channels/api4/team_local.go|\
|
||||||
channels/api4/team_test.go|\
|
channels/api4/team_test.go|\
|
||||||
channels/api4/upload_test.go|\
|
channels/api4/upload_test.go|\
|
||||||
channels/api4/usage_test.go|\
|
|
||||||
channels/api4/user.go|\
|
channels/api4/user.go|\
|
||||||
channels/api4/user_local.go|\
|
channels/api4/user_local.go|\
|
||||||
channels/api4/user_test.go|\
|
channels/api4/user_test.go|\
|
||||||
|
@ -19,7 +19,8 @@ func TestGetPostsUsage(t *testing.T) {
|
|||||||
th := Setup(t)
|
th := Setup(t)
|
||||||
defer th.TearDown()
|
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())
|
usage, r, err := th.Client.GetPostsUsage(context.Background())
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
@ -57,7 +58,8 @@ func TestGetStorageUsage(t *testing.T) {
|
|||||||
th := Setup(t)
|
th := Setup(t)
|
||||||
defer th.TearDown()
|
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())
|
usage, r, err := th.Client.GetStorageUsage(context.Background())
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
@ -71,7 +73,8 @@ func TestGetTeamsUsage(t *testing.T) {
|
|||||||
th := Setup(t)
|
th := Setup(t)
|
||||||
defer th.TearDown()
|
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())
|
usage, r, err := th.Client.GetTeamsUsage(context.Background())
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user