diff options
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 |
commit | 4af59ee357b6721c820397f2278258a4a0407625 (patch) | |
tree | bb74857caae1356c7fabb236d83860f695d957d7 /store | |
parent | b0a917bbc76229f4e7c8079400a9771b13d7797b (diff) | |
download | chat-4af59ee357b6721c820397f2278258a4a0407625.tar.gz chat-4af59ee357b6721c820397f2278258a4a0407625.tar.bz2 chat-4af59ee357b6721c820397f2278258a4a0407625.zip |
fixing unit test
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_team_store_test.go | 3 |
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") } |