[MM-15356] Migrate "Channel.Update" to Sync by default (#10815)

Этот коммит содержится в:
Shota Gvinepadze
2019-05-15 01:02:04 +04:00
коммит произвёл Hanzei
родитель 3bb11d747d
Коммит b561d7900c
9 изменённых файлов: 66 добавлений и 69 удалений

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

@@ -410,9 +410,8 @@ func TestGetChannelsForScheme(t *testing.T) {
assert.Zero(t, len(l2))
channel1.SchemeId = &scheme1.Id
result2 := <-th.App.Srv.Store.Channel().Update(channel1)
assert.Nil(t, result2.Err)
channel1 = result2.Data.(*model.Channel)
channel1, err := th.App.Srv.Store.Channel().Update(channel1)
assert.Nil(t, err)
l3, r3 := th.SystemAdminClient.GetChannelsForScheme(scheme1.Id, 0, 100)
CheckNoError(t, r3)