From 3cbacb6858ea2dda67719de64854ed30dea3b626 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:58:00 -0500 Subject: Remove unused variables / code (#7736) * remove unused variables / code * fix bug in testPostStoreGetOldest --- store/storetest/post_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store/storetest/post_store.go') diff --git a/store/storetest/post_store.go b/store/storetest/post_store.go index b288cde34..afa8ae293 100644 --- a/store/storetest/post_store.go +++ b/store/storetest/post_store.go @@ -41,6 +41,7 @@ func TestPostStore(t *testing.T, ss store.Store) { t.Run("GetPostsByIds", func(t *testing.T) { testPostStoreGetPostsByIds(t, ss) }) t.Run("GetPostsBatchForIndexing", func(t *testing.T) { testPostStoreGetPostsBatchForIndexing(t, ss) }) t.Run("PermanentDeleteBatch", func(t *testing.T) { testPostStorePermanentDeleteBatch(t, ss) }) + t.Run("GetOldest", func(t *testing.T) { testPostStoreGetOldest(t, ss) }) } func testPostStoreSave(t *testing.T, ss store.Store) { @@ -1700,7 +1701,6 @@ func testPostStoreGetOldest(t *testing.T, ss store.Store) { o1 = (<-ss.Post().Save(o1)).Data.(*model.Post) o2 := &model.Post{} - o2.Id = model.NewId() o2.ChannelId = o1.ChannelId o2.UserId = model.NewId() o2.Message = "zz" + model.NewId() + "b" -- cgit v1.2.3-1-g7c22