summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-11-30 08:51:36 -0800
committerCorey Hulen <corey@hulen.com>2015-11-30 08:51:36 -0800
commit93f08717a8cf40b1e3be138ed9d5b4d76fcfadb9 (patch)
tree4b81b2c63329364cb391427b61a1ab7f2bd5969f /store/sql_post_store_test.go
parentce259ad7f1ce8a52b7fc5af7542a101acf71173e (diff)
parent7ac97273855e5e68d9e4b10e96d5466201fb8871 (diff)
downloadchat-93f08717a8cf40b1e3be138ed9d5b4d76fcfadb9.tar.gz
chat-93f08717a8cf40b1e3be138ed9d5b4d76fcfadb9.tar.bz2
chat-93f08717a8cf40b1e3be138ed9d5b4d76fcfadb9.zip
Merge pull request #1537 from florianorben/PLT-1035
PLT-1035: Remove last data point in graphs on #statistics page
Diffstat (limited to 'store/sql_post_store_test.go')
-rw-r--r--store/sql_post_store_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/store/sql_post_store_test.go b/store/sql_post_store_test.go
index d9b087ea7..12b50cad3 100644
--- a/store/sql_post_store_test.go
+++ b/store/sql_post_store_test.go
@@ -9,6 +9,7 @@ import (
"time"
"github.com/mattermost/platform/model"
+ "github.com/mattermost/platform/utils"
)
func TestPostStoreSave(t *testing.T) {
@@ -776,7 +777,7 @@ func TestUserCountsWithPostsByDay(t *testing.T) {
o1 := &model.Post{}
o1.ChannelId = c1.Id
o1.UserId = model.NewId()
- o1.CreateAt = model.GetMillis()
+ o1.CreateAt = utils.MillisFromTime(utils.Yesterday())
o1.Message = "a" + model.NewId() + "b"
o1 = Must(store.Post().Save(o1)).(*model.Post)
@@ -836,7 +837,7 @@ func TestPostCountsByDay(t *testing.T) {
o1 := &model.Post{}
o1.ChannelId = c1.Id
o1.UserId = model.NewId()
- o1.CreateAt = model.GetMillis()
+ o1.CreateAt = utils.MillisFromTime(utils.Yesterday())
o1.Message = "a" + model.NewId() + "b"
o1 = Must(store.Post().Save(o1)).(*model.Post)