diff options
author | Joram Wilander <jwawilander@gmail.com> | 2018-04-19 10:21:33 -0400 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2018-04-19 11:21:33 -0300 |
commit | 514033f14c16f0634ffb36584b866c153943a692 (patch) | |
tree | d71ec709e859be767c28a4a9770597a9e67f5a08 /app/notification_test.go | |
parent | 4921fda79ff12b5e61cf66662932ab254535e16c (diff) | |
download | chat-514033f14c16f0634ffb36584b866c153943a692.tar.gz chat-514033f14c16f0634ffb36584b866c153943a692.tar.bz2 chat-514033f14c16f0634ffb36584b866c153943a692.zip |
Fix panics caused by race in notification code (#8652)
Diffstat (limited to 'app/notification_test.go')
-rw-r--r-- | app/notification_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/notification_test.go b/app/notification_test.go index 8df19e2bf..24784940e 100644 --- a/app/notification_test.go +++ b/app/notification_test.go @@ -23,6 +23,8 @@ func TestSendNotifications(t *testing.T) { UserId: th.BasicUser.Id, ChannelId: th.BasicChannel.Id, Message: "@" + th.BasicUser2.Username, + Type: model.POST_ADD_TO_CHANNEL, + Props: map[string]interface{}{model.POST_PROPS_ADDED_USER_ID: "junk"}, }, true) if err != nil { |