Fix race condition in app/channel_test.go (#29331)

Этот коммит содержится в:
Agniva De Sarker
2024-11-20 14:58:02 +05:30
коммит произвёл GitHub
родитель ed7a38e80c
Коммит 5c5276312b

Просмотреть файл

@@ -2260,7 +2260,7 @@ func TestPatchChannelModerationsForChannel(t *testing.T) {
go func() {
_, appErr := th.App.PatchChannelModerationsForChannel(th.Context, channel.DeepCopy(), addCreatePosts)
require.Nil(t, appErr)
_, err = th.App.PatchChannelModerationsForChannel(th.Context, channel.DeepCopy(), removeCreatePosts)
_, appErr = th.App.PatchChannelModerationsForChannel(th.Context, channel.DeepCopy(), removeCreatePosts)
require.Nil(t, appErr)
wg.Done()
}()