summaryrefslogtreecommitdiffstats
path: root/api/channel_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-05 09:52:23 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-05 09:52:23 -0800
commite01aea78251964006104d4700f010cb150947606 (patch)
tree62482b08cadfbad9cfa209acd3cb0963f2377d3f /api/channel_test.go
parent9261b1ec62e67a4a222e40dfae4376bbeebd3fa0 (diff)
downloadchat-e01aea78251964006104d4700f010cb150947606.tar.gz
chat-e01aea78251964006104d4700f010cb150947606.tar.bz2
chat-e01aea78251964006104d4700f010cb150947606.zip
fixing unit tests
Diffstat (limited to 'api/channel_test.go')
-rw-r--r--api/channel_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/channel_test.go b/api/channel_test.go
index 4dd2afc54..708402ee3 100644
--- a/api/channel_test.go
+++ b/api/channel_test.go
@@ -7,6 +7,7 @@ import (
"github.com/mattermost/platform/model"
"net/http"
"testing"
+ "time"
)
func TestCreateChannel(t *testing.T) {
@@ -687,6 +688,7 @@ func TestUpdateNotifyLevel(t *testing.T) {
data["notify_level"] = model.CHANNEL_NOTIFY_MENTION
timeBeforeUpdate := model.GetMillis()
+ time.Sleep(100 * time.Millisecond)
if _, err := Client.UpdateNotifyLevel(data); err != nil {
t.Fatal(err)