From 434b308ce4dc968070c47952d9489ab7e0ade85b Mon Sep 17 00:00:00 2001 From: evan-forbes Date: Wed, 13 Apr 2022 16:54:50 -0500 Subject: [PATCH] patch test to remind us to fix in the future --- x/auth/client/testutil/suite.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/x/auth/client/testutil/suite.go b/x/auth/client/testutil/suite.go index 626e0130f42a..efaa7dcd2da6 100644 --- a/x/auth/client/testutil/suite.go +++ b/x/auth/client/testutil/suite.go @@ -452,6 +452,7 @@ func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents() { name string args []string expectEmpty bool + expectError string }{ { "fee event happy case", @@ -461,6 +462,8 @@ func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents() { fmt.Sprintf("--%s=json", tmcli.OutputFlag), }, false, + "transaction spanned more than two shares, this is not yet supported", + // TODO: change this to not expect an error when functionality is added to celestia-core }, { "no matching fee event", @@ -470,6 +473,7 @@ func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents() { fmt.Sprintf("--%s=json", tmcli.OutputFlag), }, true, + "", }, } @@ -480,6 +484,10 @@ func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents() { clientCtx := val.ClientCtx out, err := clitestutil.ExecTestCLICmd(clientCtx, cmd, tc.args) + if tc.expectError != "" { + s.Require().Equal(tc.expectError, err.Error()) + return + } s.Require().NoError(err) var result sdk.SearchTxsResult