mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-26 00:51:41 +00:00
Fix lint error: use assert.NotEmpty instead of assert.Greater
Co-authored-by: silverwind <115237+silverwind@users.noreply.github.com>
This commit is contained in:
@@ -88,7 +88,7 @@ func TestChangeTitleNormalChange(t *testing.T) {
|
||||
Type: issues_model.CommentTypeChangeTitle,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Greater(t, len(comments), 0, "Should have created a CommentTypeChangeTitle comment")
|
||||
assert.NotEmpty(t, comments, "Should have created a CommentTypeChangeTitle comment")
|
||||
|
||||
// Verify the last comment has the correct old and new titles
|
||||
lastComment := comments[len(comments)-1]
|
||||
|
||||
Reference in New Issue
Block a user