* Increasing channel limits

* Fixing unit test
Этот коммит содержится в:
Corey Hulen
2016-09-09 11:46:36 -07:00
коммит произвёл enahum
родитель 58cdb17fb9
Коммит 193314e9fc
2 изменённых файлов: 1 добавлений и 16 удалений

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

@@ -39,21 +39,6 @@ func TestChannelStoreSave(t *testing.T) {
if err := (<-store.Channel().Save(&o1)).Err; err == nil {
t.Fatal("Should not be able to save direct channel")
}
o1.Type = model.CHANNEL_OPEN
for i := 0; i < 1000; i++ {
o1.Id = ""
o1.Name = "a" + model.NewId() + "b"
if err := (<-store.Channel().Save(&o1)).Err; err != nil {
t.Fatal("couldn't save item", err)
}
}
o1.Id = ""
o1.Name = "a" + model.NewId() + "b"
if err := (<-store.Channel().Save(&o1)).Err; err == nil {
t.Fatal("should be the limit")
}
}
func TestChannelStoreSaveDirectChannel(t *testing.T) {