Replace bytes.BufferString with bytes.Buffer

This commit is contained in:
katexochen 2022-05-02 22:34:59 +02:00 committed by Paul Meyer
parent e8082eaaad
commit 9d31c9637b

View File

@ -116,9 +116,9 @@ func TestVerify(t *testing.T) {
cmd := newVerifyCmd()
cmd.Flags().String("dev-config", "", "") // register persisten flag manually
out := bytes.NewBufferString("")
out := &bytes.Buffer{}
cmd.SetOut(out)
cmd.SetErr(bytes.NewBufferString(""))
cmd.SetErr(&bytes.Buffer{})
if tc.devConfigFlag != "" {
require.NoError(cmd.Flags().Set("dev-config", tc.devConfigFlag))
}