Fix migration tests since #7 fixed (#7375) (#7381)

* fix migration tests since #7 fixed

* fix test time
This commit is contained in:
Lunny Xiao 2019-07-08 23:04:46 +08:00 committed by GitHub
parent 7b82056b0e
commit f4818671e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,6 +173,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
var ( var (
closed1 = time.Date(2018, 10, 23, 02, 57, 43, 0, time.UTC) closed1 = time.Date(2018, 10, 23, 02, 57, 43, 0, time.UTC)
closed7 = time.Date(2019, 7, 8, 8, 20, 23, 0, time.UTC)
) )
assert.EqualValues(t, []*base.Issue{ assert.EqualValues(t, []*base.Issue{
{ {
@ -208,9 +209,9 @@ func TestGitHubDownloadRepo(t *testing.T) {
Number: 7, Number: 7,
Title: "display page revisions on wiki", Title: "display page revisions on wiki",
Content: "Hi guys,\r\n\r\nWiki on Gogs is very fine, I liked a lot, but I think that is good idea to be possible see other revisions from page as a page history.\r\n\r\nWhat you think?\r\n\r\nReference: https://github.com/gogits/gogs/issues/2991", Content: "Hi guys,\r\n\r\nWiki on Gogs is very fine, I liked a lot, but I think that is good idea to be possible see other revisions from page as a page history.\r\n\r\nWhat you think?\r\n\r\nReference: https://github.com/gogits/gogs/issues/2991",
Milestone: "1.x.x", Milestone: "1.10.0",
PosterName: "joubertredrat", PosterName: "joubertredrat",
State: "open", State: "closed",
Created: time.Date(2016, 11, 02, 18, 57, 32, 0, time.UTC), Created: time.Date(2016, 11, 02, 18, 57, 32, 0, time.UTC),
Labels: []*base.Label{ Labels: []*base.Label{
{ {
@ -232,6 +233,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
Heart: 0, Heart: 0,
Hooray: 0, Hooray: 0,
}, },
Closed: &closed7,
}, },
{ {
Number: 8, Number: 8,