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