Fixed assert statements. (#16089)
This commit is contained in:
parent
51775f65bc
commit
3607f79d78
56 changed files with 227 additions and 228 deletions
|
@ -115,7 +115,7 @@ func TestGitlabDownloadRepo(t *testing.T) {
|
|||
|
||||
issues, isEnd, err := downloader.GetIssues(1, 2)
|
||||
assert.NoError(t, err)
|
||||
assert.EqualValues(t, 2, len(issues))
|
||||
assert.Len(t, issues, 2)
|
||||
assert.False(t, isEnd)
|
||||
|
||||
var (
|
||||
|
@ -206,7 +206,7 @@ func TestGitlabDownloadRepo(t *testing.T) {
|
|||
|
||||
comments, err := downloader.GetComments(2)
|
||||
assert.NoError(t, err)
|
||||
assert.EqualValues(t, 4, len(comments))
|
||||
assert.Len(t, comments, 4)
|
||||
assert.EqualValues(t, []*base.Comment{
|
||||
{
|
||||
IssueIndex: 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue