mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 09:33:24 +02:00
Enable testifylint rules (#34075)
enable testifylint rules disabled in: https://github.com/go-gitea/gitea/pull/34054
This commit is contained in:
1 parent
0fd5392087
commit
0fde8ecd55
262 files changed
+1315
-1365
No files matched your search
@@ -30,7 +30,7 @@ func TestGetFeeds(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
if assert.Len(t, actions, 1) {
|
||||
assert.EqualValues(t, 1, actions[0].ID)
|
||||
assert.EqualValues(t, user.ID, actions[0].UserID)
|
||||
assert.Equal(t, user.ID, actions[0].UserID)
|
||||
}
|
||||
assert.Equal(t, int64(1), count)
|
||||
|
||||
@@ -107,7 +107,7 @@ func TestGetFeeds2(t *testing.T) {
|
||||
assert.Len(t, actions, 1)
|
||||
if assert.Len(t, actions, 1) {
|
||||
assert.EqualValues(t, 2, actions[0].ID)
|
||||
assert.EqualValues(t, org.ID, actions[0].UserID)
|
||||
assert.Equal(t, org.ID, actions[0].UserID)
|
||||
}
|
||||
assert.Equal(t, int64(1), count)
|
||||
|
||||
|
||||
Reference in new issue
Block a user