diff options
author | =Corey Hulen <corey@hulen.com> | 2015-07-06 00:50:42 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-07-06 00:50:42 -0800 |
commit | 34fb817a4a4cd2761ba35a2c94f9d0eb79d06244 (patch) | |
tree | eaf0ecaf55383449a5b2cc369fa8112109da7f0d /store/sql_post_store_test.go | |
parent | cbadc263864b1b0196b90b9afa1c68335f0ab7f1 (diff) | |
download | chat-34fb817a4a4cd2761ba35a2c94f9d0eb79d06244.tar.gz chat-34fb817a4a4cd2761ba35a2c94f9d0eb79d06244.tar.bz2 chat-34fb817a4a4cd2761ba35a2c94f9d0eb79d06244.zip |
Fixing unit tests
Diffstat (limited to 'store/sql_post_store_test.go')
-rw-r--r-- | store/sql_post_store_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/store/sql_post_store_test.go b/store/sql_post_store_test.go index 13dd6e5ed..d9805eb02 100644 --- a/store/sql_post_store_test.go +++ b/store/sql_post_store_test.go @@ -280,7 +280,7 @@ func TestPostStoreGetWithChildren(t *testing.T) { } } - <-store.Post().Delete(o3.Id, model.GetMillis()) + Must(store.Post().Delete(o3.Id, model.GetMillis())) if r2 := <-store.Post().Get(o1.Id); r2.Err != nil { t.Fatal(r2.Err) @@ -291,7 +291,7 @@ func TestPostStoreGetWithChildren(t *testing.T) { } } - <-store.Post().Delete(o2.Id, model.GetMillis()) + Must(store.Post().Delete(o2.Id, model.GetMillis())) if r3 := <-store.Post().Get(o1.Id); r3.Err != nil { t.Fatal(r3.Err) @@ -399,7 +399,7 @@ func TestPostStoreSearch(t *testing.T) { m1.ChannelId = c1.Id m1.UserId = userId m1.NotifyLevel = model.CHANNEL_NOTIFY_ALL - <-store.Channel().SaveMember(&m1) + Must(store.Channel().SaveMember(&m1)) c2 := &model.Channel{} c2.TeamId = teamId |