Skip to content

Commit

Permalink
Fix wrong writer used: io.Discard => buffer
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Dec 19, 2024
1 parent 666bfc7 commit cc43fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/get/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cc43fcc

Please sign in to comment.