From 141ddaad192d76a0421d9d14961450db69956350 Mon Sep 17 00:00:00 2001 From: Amirhf1 Date: Fri, 5 Jun 2026 00:38:43 +0330 Subject: [PATCH] Replace assert.Equal(t, len(c.Errors), len(cp.Errors)) with assert.Len(t, cp.Errors, 2) to satisfy the testifylint linter rule --- context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context_test.go b/context_test.go index cff49c35..3f196f57 100644 --- a/context_test.go +++ b/context_test.go @@ -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())