Skip to content

Commit f481867

Browse files
authored
Fix migration tests since #7 fixed (#7375) (#7381)
* fix migration tests since #7 fixed * fix test time
1 parent 7b82056 commit f481867

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: modules/migrations/github_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
173173

174174
var (
175175
closed1 = time.Date(2018, 10, 23, 02, 57, 43, 0, time.UTC)
176+
closed7 = time.Date(2019, 7, 8, 8, 20, 23, 0, time.UTC)
176177
)
177178
assert.EqualValues(t, []*base.Issue{
178179
{
@@ -208,9 +209,9 @@ func TestGitHubDownloadRepo(t *testing.T) {
208209
Number: 7,
209210
Title: "display page revisions on wiki",
210211
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",
211-
Milestone: "1.x.x",
212+
Milestone: "1.10.0",
212213
PosterName: "joubertredrat",
213-
State: "open",
214+
State: "closed",
214215
Created: time.Date(2016, 11, 02, 18, 57, 32, 0, time.UTC),
215216
Labels: []*base.Label{
216217
{
@@ -232,6 +233,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
232233
Heart: 0,
233234
Hooray: 0,
234235
},
236+
Closed: &closed7,
235237
},
236238
{
237239
Number: 8,

0 commit comments

Comments
 (0)