diff options
Diffstat (limited to 'api/channel_test.go')
-rw-r--r-- | api/channel_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/channel_test.go b/api/channel_test.go index 31b201346..69902c3ad 100644 --- a/api/channel_test.go +++ b/api/channel_test.go @@ -113,8 +113,9 @@ func TestCreateDirectChannel(t *testing.T) { t.Fatal("channel type was not direct") } - if _, err := Client.CreateDirectChannel(th.BasicUser2.Id); err == nil { - t.Fatal("channel already exists and should have failed") + // don't fail on direct channels already existing + if _, err := Client.CreateDirectChannel(th.BasicUser2.Id); err != nil { + t.Fatal(err) } if _, err := Client.CreateDirectChannel("junk"); err == nil { |