fix: attempt fixing evidence flaky test (#13901)

This commit is contained in:
atheeshp 2022-11-17 21:14:25 +05:30 committed by GitHub
parent 65015c2f96
commit e2ae2bb551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)