From cc43fcce674aff53ec38b3ad52eed862a764a122 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Thu, 19 Dec 2024 15:48:17 +0100 Subject: [PATCH] Fix wrong writer used: io.Discard => buffer Signed-off-by: cmoulliard --- pkg/cmd/get/secrets_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/get/secrets_test.go b/pkg/cmd/get/secrets_test.go index d55572ef..6bd3d0f0 100644 --- a/pkg/cmd/get/secrets_test.go +++ b/pkg/cmd/get/secrets_test.go @@ -212,7 +212,7 @@ func TestOutput(t *testing.T) { var b []byte buffer := bytes.NewBuffer(b) - err := printAllPackageSecrets(ctx, io.Discard, fClient, "json") + err := printAllPackageSecrets(ctx, buffer, fClient, "json") fClient.AssertExpectations(t) assert.Nil(t, err)