From 11c035aef45fbc6dfbc360123611108a199eca79 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 20 Jan 2016 10:04:17 -0600 Subject: PLT-7 adding loc db calls for oauth table --- store/sql_post_store_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'store/sql_post_store_test.go') diff --git a/store/sql_post_store_test.go b/store/sql_post_store_test.go index 07f152dc4..5f022becf 100644 --- a/store/sql_post_store_test.go +++ b/store/sql_post_store_test.go @@ -655,20 +655,20 @@ func TestPostStoreSearch(t *testing.T) { c1.DisplayName = "Channel1" c1.Name = "a" + model.NewId() + "b" c1.Type = model.CHANNEL_OPEN - c1 = (<-store.Channel().Save(c1)).Data.(*model.Channel) + c1 = (<-store.Channel().Save(utils.T, c1)).Data.(*model.Channel) m1 := model.ChannelMember{} m1.ChannelId = c1.Id m1.UserId = userId m1.NotifyProps = model.GetDefaultChannelNotifyProps() - Must(store.Channel().SaveMember(&m1)) + Must(store.Channel().SaveMember(utils.T, &m1)) c2 := &model.Channel{} c2.TeamId = teamId c2.DisplayName = "Channel1" c2.Name = "a" + model.NewId() + "b" c2.Type = model.CHANNEL_OPEN - c2 = (<-store.Channel().Save(c2)).Data.(*model.Channel) + c2 = (<-store.Channel().Save(utils.T, c2)).Data.(*model.Channel) o1 := &model.Post{} o1.ChannelId = c1.Id @@ -772,7 +772,7 @@ func TestUserCountsWithPostsByDay(t *testing.T) { c1.DisplayName = "Channel2" c1.Name = "a" + model.NewId() + "b" c1.Type = model.CHANNEL_OPEN - c1 = Must(store.Channel().Save(c1)).(*model.Channel) + c1 = Must(store.Channel().Save(utils.T, c1)).(*model.Channel) o1 := &model.Post{} o1.ChannelId = c1.Id @@ -832,7 +832,7 @@ func TestPostCountsByDay(t *testing.T) { c1.DisplayName = "Channel2" c1.Name = "a" + model.NewId() + "b" c1.Type = model.CHANNEL_OPEN - c1 = Must(store.Channel().Save(c1)).(*model.Channel) + c1 = Must(store.Channel().Save(utils.T, c1)).(*model.Channel) o1 := &model.Post{} o1.ChannelId = c1.Id -- cgit v1.2.3-1-g7c22