From e01aea78251964006104d4700f010cb150947606 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Sun, 5 Jul 2015 09:52:23 -0800 Subject: fixing unit tests --- api/channel_test.go | 2 ++ api/user_test.go | 2 ++ 2 files changed, 4 insertions(+) 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) diff --git a/api/user_test.go b/api/user_test.go index 2a3a3c830..9af9508f2 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -470,6 +470,8 @@ func TestUserUpdate(t *testing.T) { Client.LoginByEmail(team.Domain, user.Email, "pwd") + time.Sleep(100 * time.Millisecond) + time2 := model.GetMillis() user.FullName = "Jim Jimmy" -- cgit v1.2.3-1-g7c22