summaryrefslogtreecommitdiffstats
path: root/store/storetest/team_store.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-20 17:33:20 -0700
committerJoram Wilander <jwawilander@gmail.com>2017-10-20 20:33:20 -0400
commitd39a722a819b154d260b90905065a000749778b6 (patch)
tree94d9a1de7bea296e135624c60bdd2147be344aab /store/storetest/team_store.go
parent812f5664016deb596281d8119321833beafd4599 (diff)
downloadchat-d39a722a819b154d260b90905065a000749778b6.tar.gz
chat-d39a722a819b154d260b90905065a000749778b6.tar.bz2
chat-d39a722a819b154d260b90905065a000749778b6.zip
refactor max channels per team enforcement (#7690)
Diffstat (limited to 'store/storetest/team_store.go')
-rw-r--r--store/storetest/team_store.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/store/storetest/team_store.go b/store/storetest/team_store.go
index e48595780..9a3b7c490 100644
--- a/store/storetest/team_store.go
+++ b/store/storetest/team_store.go
@@ -923,9 +923,9 @@ func testGetChannelUnreadsForAllTeams(t *testing.T, ss store.Store) {
store.Must(ss.Team().SaveMember(m2))
c1 := &model.Channel{TeamId: m1.TeamId, Name: model.NewId(), DisplayName: "Town Square", Type: model.CHANNEL_OPEN, TotalMsgCount: 100}
- store.Must(ss.Channel().Save(c1))
+ store.Must(ss.Channel().Save(c1, -1))
c2 := &model.Channel{TeamId: m2.TeamId, Name: model.NewId(), DisplayName: "Town Square", Type: model.CHANNEL_OPEN, TotalMsgCount: 100}
- store.Must(ss.Channel().Save(c2))
+ store.Must(ss.Channel().Save(c2, -1))
cm1 := &model.ChannelMember{ChannelId: c1.Id, UserId: m1.UserId, NotifyProps: model.GetDefaultChannelNotifyProps(), MsgCount: 90}
store.Must(ss.Channel().SaveMember(cm1))
@@ -986,9 +986,9 @@ func testGetChannelUnreadsForTeam(t *testing.T, ss store.Store) {
store.Must(ss.Team().SaveMember(m1))
c1 := &model.Channel{TeamId: m1.TeamId, Name: model.NewId(), DisplayName: "Town Square", Type: model.CHANNEL_OPEN, TotalMsgCount: 100}
- store.Must(ss.Channel().Save(c1))
+ store.Must(ss.Channel().Save(c1, -1))
c2 := &model.Channel{TeamId: m1.TeamId, Name: model.NewId(), DisplayName: "Town Square", Type: model.CHANNEL_OPEN, TotalMsgCount: 100}
- store.Must(ss.Channel().Save(c2))
+ store.Must(ss.Channel().Save(c2, -1))
cm1 := &model.ChannelMember{ChannelId: c1.Id, UserId: m1.UserId, NotifyProps: model.GetDefaultChannelNotifyProps(), MsgCount: 90}
store.Must(ss.Channel().SaveMember(cm1))