Fix gitlab migration unit test
Closes #1837.
The differences in dates can be explained by commit e19b9653ea
, which
changed the order in which "created_date" and "updated_date" are
considered.
This commit is contained in:
parent
7fb8598c7d
commit
b0bba20aa4
1 changed files with 8 additions and 8 deletions
|
@ -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