diff options
Diffstat (limited to 'model/channel_member_test.go')
-rw-r--r-- | model/channel_member_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/model/channel_member_test.go b/model/channel_member_test.go index cff48ae27..e43560cee 100644 --- a/model/channel_member_test.go +++ b/model/channel_member_test.go @@ -30,14 +30,15 @@ func TestChannelMemberIsValid(t *testing.T) { t.Fatal("should be invalid") } - o.Roles = "missing" + o.NotifyProps = GetDefaultChannelNotifyProps() + o.UserId = NewId() + /*o.Roles = "missing" o.NotifyProps = GetDefaultChannelNotifyProps() o.UserId = NewId() if err := o.IsValid(); err == nil { t.Fatal("should be invalid") - } + }*/ - o.Roles = CHANNEL_ROLE_ADMIN o.NotifyProps["desktop"] = "junk" if err := o.IsValid(); err == nil { t.Fatal("should be invalid") |