mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
errcheck issues fixed (#28693)
This commit is contained in:
parent
276b56d7a1
commit
dd6546bd5e
@ -93,7 +93,6 @@ issues:
|
|||||||
channels/api4/system_test.go|\
|
channels/api4/system_test.go|\
|
||||||
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/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|\
|
||||||
|
@ -59,7 +59,10 @@ func TestCreateUpload(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("not allowed in cloud", func(t *testing.T) {
|
t.Run("not allowed in cloud", func(t *testing.T) {
|
||||||
th.App.Srv().SetLicense(model.NewTestLicense("cloud"))
|
th.App.Srv().SetLicense(model.NewTestLicense("cloud"))
|
||||||
defer th.App.Srv().RemoveLicense()
|
defer func() {
|
||||||
|
appErr := th.App.Srv().RemoveLicense()
|
||||||
|
require.Nil(t, appErr)
|
||||||
|
}()
|
||||||
|
|
||||||
u, resp, err := th.SystemAdminClient.CreateUpload(context.Background(), &model.UploadSession{
|
u, resp, err := th.SystemAdminClient.CreateUpload(context.Background(), &model.UploadSession{
|
||||||
ChannelId: th.BasicChannel.Id,
|
ChannelId: th.BasicChannel.Id,
|
||||||
@ -252,7 +255,10 @@ func TestUploadData(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("not allowed in cloud", func(t *testing.T) {
|
t.Run("not allowed in cloud", func(t *testing.T) {
|
||||||
th.App.Srv().SetLicense(model.NewTestLicense("cloud"))
|
th.App.Srv().SetLicense(model.NewTestLicense("cloud"))
|
||||||
defer th.App.Srv().RemoveLicense()
|
defer func() {
|
||||||
|
appErr := th.App.Srv().RemoveLicense()
|
||||||
|
require.Nil(t, appErr)
|
||||||
|
}()
|
||||||
|
|
||||||
us2 := &model.UploadSession{
|
us2 := &model.UploadSession{
|
||||||
Id: model.NewId(),
|
Id: model.NewId(),
|
||||||
|
Loading…
Reference in New Issue
Block a user