fix: shared channel test errcheck issues (#28551)
* fix: shared channel test errcheck issues
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
89f04af631
Коммит
2b723099a6
@@ -93,7 +93,7 @@ issues:
|
|||||||
channels/api4/saml.go|\
|
channels/api4/saml.go|\
|
||||||
channels/api4/scheme.go|\
|
channels/api4/scheme.go|\
|
||||||
channels/api4/scheme_test.go|\
|
channels/api4/scheme_test.go|\
|
||||||
channels/api4/shared_channel_test.go|\
|
channels/api4/shared_channel.go|\
|
||||||
channels/api4/status.go|\
|
channels/api4/status.go|\
|
||||||
channels/api4/status_test.go|\
|
channels/api4/status_test.go|\
|
||||||
channels/api4/system_local.go|\
|
channels/api4/system_local.go|\
|
||||||
|
|||||||
@@ -165,7 +165,10 @@ func TestCreateDirectChannelWithRemoteUser(t *testing.T) {
|
|||||||
th := setupForSharedChannels(t).InitBasic()
|
th := setupForSharedChannels(t).InitBasic()
|
||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
client := th.Client
|
client := th.Client
|
||||||
defer client.Logout(context.Background())
|
defer func() {
|
||||||
|
_, err := client.Logout(context.Background())
|
||||||
|
require.NoError(t, err)
|
||||||
|
}()
|
||||||
|
|
||||||
localUser := th.BasicUser
|
localUser := th.BasicUser
|
||||||
remoteUser := th.CreateUser()
|
remoteUser := th.CreateUser()
|
||||||
@@ -185,7 +188,10 @@ func TestCreateDirectChannelWithRemoteUser(t *testing.T) {
|
|||||||
th := setupForSharedChannels(t).InitBasic()
|
th := setupForSharedChannels(t).InitBasic()
|
||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
client := th.Client
|
client := th.Client
|
||||||
defer client.Logout(context.Background())
|
defer func() {
|
||||||
|
_, err := client.Logout(context.Background())
|
||||||
|
require.NoError(t, err)
|
||||||
|
}()
|
||||||
|
|
||||||
localUser := th.BasicUser
|
localUser := th.BasicUser
|
||||||
remoteUser := th.CreateUser()
|
remoteUser := th.CreateUser()
|
||||||
@@ -214,7 +220,10 @@ func TestCreateDirectChannelWithRemoteUser(t *testing.T) {
|
|||||||
th := setupForSharedChannels(t).InitBasic()
|
th := setupForSharedChannels(t).InitBasic()
|
||||||
defer th.TearDown()
|
defer th.TearDown()
|
||||||
client := th.Client
|
client := th.Client
|
||||||
defer client.Logout(context.Background())
|
defer func() {
|
||||||
|
_, err := client.Logout(context.Background())
|
||||||
|
require.NoError(t, err)
|
||||||
|
}()
|
||||||
|
|
||||||
localUser := th.BasicUser
|
localUser := th.BasicUser
|
||||||
remoteUser := th.CreateUser()
|
remoteUser := th.CreateUser()
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user