aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_comment_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_comment_test.go')
-rw-r--r--models/issue_comment_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue_comment_test.go b/models/issue_comment_test.go
index 86fc32a8d3..f6a6fbce9b 100644
--- a/models/issue_comment_test.go
+++ b/models/issue_comment_test.go
@@ -33,9 +33,9 @@ func TestCreateComment(t *testing.T) {
assert.EqualValues(t, "Hello", comment.Content)
assert.EqualValues(t, issue.ID, comment.IssueID)
assert.EqualValues(t, doer.ID, comment.PosterID)
- AssertInt64InRange(t, now, then, comment.CreatedUnix)
+ AssertInt64InRange(t, now, then, int64(comment.CreatedUnix))
AssertExistsAndLoadBean(t, comment) // assert actually added to DB
updatedIssue := AssertExistsAndLoadBean(t, &Issue{ID: issue.ID}).(*Issue)
- AssertInt64InRange(t, now, then, updatedIssue.UpdatedUnix)
+ AssertInt64InRange(t, now, then, int64(updatedIssue.UpdatedUnix))
}