diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-02 08:45:38 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-02 08:45:38 -0400 |
commit | 08d390953a822371380b4264c3fb4cf891440995 (patch) | |
tree | f5f38c6fa649aa206fc751290b8a588fd1da9828 /api/channel_benchmark_test.go | |
parent | fbbee5bf614c1cbce5a4beb02d553b3261c8d749 (diff) | |
parent | c9a0030551f289241407743fbd21080cd8a358a4 (diff) | |
download | chat-08d390953a822371380b4264c3fb4cf891440995.tar.gz chat-08d390953a822371380b4264c3fb4cf891440995.tar.bz2 chat-08d390953a822371380b4264c3fb4cf891440995.zip |
Merge pull request #881 from hmhealey/plt194
PLT-194 Changes to ChannelMember notification settings
Diffstat (limited to 'api/channel_benchmark_test.go')
-rw-r--r-- | api/channel_benchmark_test.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/api/channel_benchmark_test.go b/api/channel_benchmark_test.go index 77e679c14..7820f4a03 100644 --- a/api/channel_benchmark_test.go +++ b/api/channel_benchmark_test.go @@ -255,7 +255,7 @@ func BenchmarkRemoveChannelMember(b *testing.B) { } } -func BenchmarkUpdateNotifyLevel(b *testing.B) { +func BenchmarkUpdateNotifyProps(b *testing.B) { var ( NUM_CHANNELS_RANGE = utils.Range{NUM_CHANNELS, NUM_CHANNELS} ) @@ -271,9 +271,10 @@ func BenchmarkUpdateNotifyLevel(b *testing.B) { for i := range data { newmap := map[string]string{ - "channel_id": channels[i].Id, - "user_id": user.Id, - "notify_level": model.CHANNEL_NOTIFY_MENTION, + "channel_id": channels[i].Id, + "user_id": user.Id, + "desktop": model.CHANNEL_NOTIFY_MENTION, + "mark_unread": model.CHANNEL_MARK_UNREAD_MENTION, } data[i] = newmap } @@ -282,7 +283,7 @@ func BenchmarkUpdateNotifyLevel(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { for j := range channels { - Client.Must(Client.UpdateNotifyLevel(data[j])) + Client.Must(Client.UpdateNotifyProps(data[j])) } } } |