Skip to content

Commit 427a161

Browse files
lunnylafriks
authored andcommitted
Fix migration tests since #7 fixed (#7375)
* fix migration tests since #7 fixed * fix test time
1 parent 5f8f42e commit 427a161

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
@@ -174,6 +174,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
174174

175175
var (
176176
closed1 = time.Date(2018, 10, 23, 02, 57, 43, 0, time.UTC)
177+
closed7 = time.Date(2019, 7, 8, 8, 20, 23, 0, time.UTC)
177178
)
178179
assert.EqualValues(t, []*base.Issue{
179180
{
@@ -210,10 +211,10 @@ func TestGitHubDownloadRepo(t *testing.T) {
210211
Number: 7,
211212
Title: "display page revisions on wiki",
212213
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",
213-
Milestone: "1.x.x",
214+
Milestone: "1.10.0",
214215
PosterID: 1520407,
215216
PosterName: "joubertredrat",
216-
State: "open",
217+
State: "closed",
217218
Created: time.Date(2016, 11, 02, 18, 57, 32, 0, time.UTC),
218219
Labels: []*base.Label{
219220
{
@@ -235,6 +236,7 @@ func TestGitHubDownloadRepo(t *testing.T) {
235236
Heart: 0,
236237
Hooray: 0,
237238
},
239+
Closed: &closed7,
238240
},
239241
{
240242
Number: 8,

0 commit comments

Comments
 (0)