MM-14415: Removes 'CanLeave' field. (#10426)

Этот коммит содержится в:
Martin Kraft
2019-03-12 08:58:18 -04:00
коммит произвёл GitHub
родитель 62a94d53f4
Коммит ca52ca7016
6 изменённых файлов: 11 добавлений и 99 удалений

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

@@ -71,7 +71,6 @@ func TestPopulateSyncablesSince(t *testing.T) {
}
_, err = th.App.CreateGroupSyncable(&model.GroupSyncable{
CanLeave: true,
AutoAdd: true,
GroupId: gleeGroup.Id,
SyncableId: practiceChannel.Id,
@@ -82,7 +81,6 @@ func TestPopulateSyncablesSince(t *testing.T) {
}
scienceTeamGroupSyncable, err := th.App.CreateGroupSyncable(&model.GroupSyncable{
CanLeave: true,
AutoAdd: false,
GroupId: scienceGroup.Id,
SyncableId: nerdsTeam.Id,
@@ -93,7 +91,6 @@ func TestPopulateSyncablesSince(t *testing.T) {
}
scienceChannelGroupSyncable, err := th.App.CreateGroupSyncable(&model.GroupSyncable{
CanLeave: true,
AutoAdd: false,
GroupId: scienceGroup.Id,
SyncableId: experimentsChannel.Id,
@@ -290,7 +287,6 @@ func TestPopulateSyncablesSince(t *testing.T) {
}
// the channel syncable is updated
scienceChannelGroupSyncable.CanLeave = false
scienceChannelGroupSyncable, err = th.App.UpdateGroupSyncable(scienceChannelGroupSyncable)
if err != nil {
t.Errorf("error updating group syncable: %s", err.Error())