diff --git a/command/kvdel/kv_delete_test.go b/command/kvdel/kv_delete_test.go index 11257e3305..1c9d36a95d 100644 --- a/command/kvdel/kv_delete_test.go +++ b/command/kvdel/kv_delete_test.go @@ -49,6 +49,7 @@ func TestKVDeleteCommand_Validation(t *testing.T) { } for name, tc := range cases { + c.initFlags() // Ensure our buffer is always clear if ui.ErrorWriter != nil { ui.ErrorWriter.Reset() diff --git a/command/kvput/kv_put_test.go b/command/kvput/kv_put_test.go index eb7d317fce..cae671e9ae 100644 --- a/command/kvput/kv_put_test.go +++ b/command/kvput/kv_put_test.go @@ -54,6 +54,7 @@ func TestKVPutCommand_Validation(t *testing.T) { } for name, tc := range cases { + c.initFlags() // Ensure our buffer is always clear if ui.ErrorWriter != nil { ui.ErrorWriter.Reset()