From fcf2b5ad6160995aa5fb9275b3e752e5957cc946 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 27 Jul 2026 19:30:10 +0200 Subject: [PATCH] chore(cli): chore: fix testifylint issues part 1 #### Description chore: fix testifylint issues in cli Signed-off-by: Matthieu MOREL --- cli/external_ca_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/external_ca_test.go b/cli/external_ca_test.go index f914c3a44f..da0039d5c8 100644 --- a/cli/external_ca_test.go +++ b/cli/external_ca_test.go @@ -5,6 +5,7 @@ import ( "github.com/moby/swarmkit/v2/api" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestParseExternalCA(t *testing.T) { @@ -22,7 +23,7 @@ func TestParseExternalCA(t *testing.T) { for _, spec := range invalidSpecs { _, err := parseExternalCA(spec) - assert.Error(t, err) + require.Error(t, err) } validSpecs := []struct { @@ -41,7 +42,7 @@ func TestParseExternalCA(t *testing.T) { for _, spec := range validSpecs { parsed, err := parseExternalCA(spec.input) - assert.NoError(t, err) + require.NoError(t, err) assert.Equal(t, spec.expected, parsed) } }