mirror of https://github.com/hashicorp/consul
Fix tests by calling initFlags for each test case to reset state.
parent
4e31514df8
commit
9d52f6ea92
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue