mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Replace bytes.BufferString with bytes.Buffer
This commit is contained in:
parent
e8082eaaad
commit
9d31c9637b
@ -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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user