mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fixing build
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
|||||||
"github.com/mattermost/platform/model"
|
"github.com/mattermost/platform/model"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUserStoreSave(t *testing.T) {
|
func TestUserStoreSave(t *testing.T) {
|
||||||
@@ -66,6 +67,8 @@ func TestUserStoreUpdate(t *testing.T) {
|
|||||||
u1.Email = model.NewId()
|
u1.Email = model.NewId()
|
||||||
Must(store.User().Save(&u1))
|
Must(store.User().Save(&u1))
|
||||||
|
|
||||||
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
|
||||||
if err := (<-store.User().Update(&u1, false)).Err; err != nil {
|
if err := (<-store.User().Update(&u1, false)).Err; err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user