fix: attempt fixing evidence flaky test (#13901)
This commit is contained in:
parent
65015c2f96
commit
e2ae2bb551
@ -24,10 +24,6 @@ import (
|
||||
)
|
||||
|
||||
func TestGetQueryCmd(t *testing.T) {
|
||||
cmd := cli.GetQueryCmd()
|
||||
cmd.SetOut(io.Discard)
|
||||
require.NotNil(t, cmd)
|
||||
|
||||
encCfg := testutilmod.MakeTestEncodingConfig(evidence.AppModuleBasic{})
|
||||
kr := keyring.NewInMemory(encCfg.Codec)
|
||||
baseCtx := client.Context{}.
|
||||
@ -98,6 +94,10 @@ func TestGetQueryCmd(t *testing.T) {
|
||||
clientCtx := tc.ctxGen().WithOutput(&outBuf)
|
||||
ctx := svrcmd.CreateExecuteContext(context.Background())
|
||||
|
||||
cmd := cli.GetQueryCmd()
|
||||
cmd.SetOut(io.Discard)
|
||||
require.NotNil(t, cmd)
|
||||
|
||||
cmd.SetContext(ctx)
|
||||
cmd.SetArgs(tc.args)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user