mirror of
https://github.com/gin-gonic/gin.git
synced 2026-06-06 12:08:20 +08:00
Replace assert.Equal(t, len(c.Errors), len(cp.Errors)) with assert.Len(t, cp.Errors, 2) to satisfy the testifylint linter rule
This commit is contained in:
parent
7551df8b32
commit
141ddaad19
@ -697,7 +697,7 @@ func TestContextCopyCopiesErrors(t *testing.T) {
|
||||
cp := c.Copy()
|
||||
|
||||
// copied context has the same errors
|
||||
assert.Equal(t, len(c.Errors), len(cp.Errors))
|
||||
assert.Len(t, cp.Errors, 2)
|
||||
assert.Equal(t, c.Errors[0].Error(), cp.Errors[0].Error())
|
||||
assert.Equal(t, c.Errors[1].Error(), cp.Errors[1].Error())
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user