mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Fix tests by calling initFlags for each test case to reset state.
This commit is contained in:
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…
x
Reference in New Issue
Block a user