diff options
-rw-r--r-- | api/channel_test.go | 2 | ||||
-rw-r--r-- | api/user_test.go | 2 |
2 files changed, 4 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) 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" |