diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-08 18:10:56 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-07-08 13:10:56 +0300 |
commit | 427a161c67c8b2be2c4324870b06686f1f5de3d6 (patch) | |
tree | f820a4ca50c27cdda00c751a8d31bbada331eec9 /modules | |
parent | 5f8f42e2749d2a0ab7f3b47e57edb3acda942b63 (diff) | |
download | gitea-427a161c67c8b2be2c4324870b06686f1f5de3d6.tar.gz gitea-427a161c67c8b2be2c4324870b06686f1f5de3d6.zip |
Fix migration tests since #7 fixed (#7375)
* fix migration tests since #7 fixed
* fix test time
Diffstat (limited to 'modules')
-rw-r--r-- | modules/migrations/github_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/migrations/github_test.go b/modules/migrations/github_test.go index 0f52a62eb2..54845ab426 100644 --- a/modules/migrations/github_test.go +++ b/modules/migrations/github_test.go @@ -174,6 +174,7 @@ func TestGitHubDownloadRepo(t *testing.T) { var ( 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{ { @@ -210,10 +211,10 @@ func TestGitHubDownloadRepo(t *testing.T) { Number: 7, 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", - Milestone: "1.x.x", + Milestone: "1.10.0", PosterID: 1520407, PosterName: "joubertredrat", - State: "open", + State: "closed", Created: time.Date(2016, 11, 02, 18, 57, 32, 0, time.UTC), Labels: []*base.Label{ { @@ -235,6 +236,7 @@ func TestGitHubDownloadRepo(t *testing.T) { Heart: 0, Hooray: 0, }, + Closed: &closed7, }, { Number: 8, |