mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 00:55:27 +00:00
Merge pull request '[GITEA] Fix gitlab migration unit test' (#1838) from wetneb/forgejo:1837-fix-gitlab-test into forgejo-dependency
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1838
This commit is contained in:
commit
102db68d58
|
@ -291,7 +291,7 @@ func TestGitlabDownloadRepo(t *testing.T) {
|
||||||
},
|
},
|
||||||
Base: base.PullRequestBranch{
|
Base: base.PullRequestBranch{
|
||||||
Ref: "master",
|
Ref: "master",
|
||||||
SHA: "",
|
SHA: "c59c9b451acca9d106cc19d61d87afe3fbbb8b83",
|
||||||
OwnerName: "lafriks",
|
OwnerName: "lafriks",
|
||||||
RepoName: "test_repo",
|
RepoName: "test_repo",
|
||||||
},
|
},
|
||||||
|
@ -309,16 +309,16 @@ func TestGitlabDownloadRepo(t *testing.T) {
|
||||||
assertReviewsEqual(t, []*base.Review{
|
assertReviewsEqual(t, []*base.Review{
|
||||||
{
|
{
|
||||||
IssueIndex: 1,
|
IssueIndex: 1,
|
||||||
ReviewerID: 4102996,
|
ReviewerID: 527793,
|
||||||
ReviewerName: "zeripath",
|
ReviewerName: "axifive",
|
||||||
CreatedAt: time.Date(2019, 11, 28, 16, 2, 8, 377000000, time.UTC),
|
CreatedAt: time.Date(2019, 11, 28, 8, 54, 41, 34000000, time.UTC),
|
||||||
State: "APPROVED",
|
State: "APPROVED",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
IssueIndex: 1,
|
IssueIndex: 1,
|
||||||
ReviewerID: 527793,
|
ReviewerID: 4102996,
|
||||||
ReviewerName: "axifive",
|
ReviewerName: "zeripath",
|
||||||
CreatedAt: time.Date(2019, 11, 28, 16, 2, 8, 377000000, time.UTC),
|
CreatedAt: time.Date(2019, 11, 28, 8, 54, 41, 34000000, time.UTC),
|
||||||
State: "APPROVED",
|
State: "APPROVED",
|
||||||
},
|
},
|
||||||
}, rvs)
|
}, rvs)
|
||||||
|
@ -330,7 +330,7 @@ func TestGitlabDownloadRepo(t *testing.T) {
|
||||||
IssueIndex: 2,
|
IssueIndex: 2,
|
||||||
ReviewerID: 4575606,
|
ReviewerID: 4575606,
|
||||||
ReviewerName: "real6543",
|
ReviewerName: "real6543",
|
||||||
CreatedAt: time.Date(2020, 4, 19, 19, 24, 21, 108000000, time.UTC),
|
CreatedAt: time.Date(2019, 11, 28, 15, 56, 54, 108000000, time.UTC),
|
||||||
State: "APPROVED",
|
State: "APPROVED",
|
||||||
},
|
},
|
||||||
}, rvs)
|
}, rvs)
|
||||||
|
|
Loading…
Reference in a new issue