diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-30 11:58:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 11:58:00 -0500 |
commit | 3cbacb6858ea2dda67719de64854ed30dea3b626 (patch) | |
tree | 8d0177242e65c809250fa73bd93faae26bd1ca10 /store/storetest | |
parent | c5e8cb25caa39ed018ede5270e1566e8f7448396 (diff) | |
download | chat-3cbacb6858ea2dda67719de64854ed30dea3b626.tar.gz chat-3cbacb6858ea2dda67719de64854ed30dea3b626.tar.bz2 chat-3cbacb6858ea2dda67719de64854ed30dea3b626.zip |
Remove unused variables / code (#7736)
* remove unused variables / code
* fix bug in testPostStoreGetOldest
Diffstat (limited to 'store/storetest')
-rw-r--r-- | store/storetest/post_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
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" |