testutil: add ApplyMockIODiscardOutErr, simplify existing functions (#6665)
This commit is contained in:
@@ -28,8 +28,7 @@ func TestMigrateGenesis(t *testing.T) {
|
||||
target := "v0.36"
|
||||
|
||||
cmd := MigrateGenesisCmd()
|
||||
cmd.SetErr(ioutil.Discard)
|
||||
cmd.SetOut(ioutil.Discard)
|
||||
_ = testutil.ApplyMockIODiscardOutErr(cmd)
|
||||
|
||||
clientCtx := client.Context{}.WithJSONMarshaler(cdc)
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in New Issue
Block a user