summaryrefslogtreecommitdiffstats
path: root/store/sql_team_store_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-05 10:22:07 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-05 10:22:07 -0800
commit4af59ee357b6721c820397f2278258a4a0407625 (patch)
treebb74857caae1356c7fabb236d83860f695d957d7 /store/sql_team_store_test.go
parentb0a917bbc76229f4e7c8079400a9771b13d7797b (diff)
downloadchat-4af59ee357b6721c820397f2278258a4a0407625.tar.gz
chat-4af59ee357b6721c820397f2278258a4a0407625.tar.bz2
chat-4af59ee357b6721c820397f2278258a4a0407625.zip
fixing unit test
Diffstat (limited to 'store/sql_team_store_test.go')
-rw-r--r--store/sql_team_store_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/store/sql_team_store_test.go b/store/sql_team_store_test.go
index c2f2a4d00..106648a81 100644
--- a/store/sql_team_store_test.go
+++ b/store/sql_team_store_test.go
@@ -6,6 +6,7 @@ package store
import (
"github.com/mattermost/platform/model"
"testing"
+ "time"
)
func TestTeamStoreSave(t *testing.T) {
@@ -21,6 +22,8 @@ func TestTeamStoreSave(t *testing.T) {
t.Fatal("couldn't save item", err)
}
+ time.Sleep(100 * time.Millisecond)
+
if err := (<-store.Team().Save(&o1)).Err; err == nil {
t.Fatal("shouldn't be able to update from save")
}