diff --git a/testutil/cli/cmd.go b/testutil/cli/cmd.go index ccc86c783bc9..1f09ae92966c 100644 --- a/testutil/cli/cmd.go +++ b/testutil/cli/cmd.go @@ -16,7 +16,7 @@ func ExecTestCLICmd(clientCtx client.Context, cmd *cobra.Command, extraArgs []st _, out := testutil.ApplyMockIO(cmd) clientCtx = clientCtx.WithOutput(out) - ctx := cmd.Context() + ctx := context.Background() ctx = context.WithValue(ctx, client.ClientContextKey, &clientCtx) if err := cmd.ExecuteContext(ctx); err != nil {