summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
Diffstat (limited to 'store')
-rw-r--r--store/sql_user_store_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/store/sql_user_store_test.go b/store/sql_user_store_test.go
index f8dae0021..12737caa8 100644
--- a/store/sql_user_store_test.go
+++ b/store/sql_user_store_test.go
@@ -7,6 +7,7 @@ import (
"github.com/mattermost/platform/model"
"strings"
"testing"
+ "time"
)
func TestUserStoreSave(t *testing.T) {
@@ -66,6 +67,8 @@ func TestUserStoreUpdate(t *testing.T) {
u1.Email = model.NewId()
Must(store.User().Save(&u1))
+ time.Sleep(100 * time.Millisecond)
+
if err := (<-store.User().Update(&u1, false)).Err; err != nil {
t.Fatal(err)
}