diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-05 10:09:47 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-05 10:09:47 -0800 |
commit | b0a917bbc76229f4e7c8079400a9771b13d7797b (patch) | |
tree | c307c8177da33438fdd76d6839b107f275892ec1 | |
parent | b968ef04a0f2837313c1b08462cf6f530c54853b (diff) | |
download | chat-b0a917bbc76229f4e7c8079400a9771b13d7797b.tar.gz chat-b0a917bbc76229f4e7c8079400a9771b13d7797b.tar.bz2 chat-b0a917bbc76229f4e7c8079400a9771b13d7797b.zip |
fixing unit test
-rw-r--r-- | store/sql_channel_store_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/store/sql_channel_store_test.go b/store/sql_channel_store_test.go index be877ce5f..e9d0d1652 100644 --- a/store/sql_channel_store_test.go +++ b/store/sql_channel_store_test.go @@ -6,6 +6,7 @@ package store import ( "github.com/mattermost/platform/model" "testing" + "time" ) func TestChannelStoreSave(t *testing.T) { @@ -60,6 +61,8 @@ func TestChannelStoreUpdate(t *testing.T) { t.Fatal(err) } + time.Sleep(100 * time.Millisecond) + if err := (<-store.Channel().Update(&o1)).Err; err != nil { t.Fatal(err) } |