Skip to content

Commit

Permalink
patch test to remind us to fix in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Apr 13, 2022
1 parent 8cdd3bb commit 434b308
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/auth/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents() {
name string
args []string
expectEmpty bool
expectError string
}{
{
"fee event happy case",
Expand All @@ -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",
Expand All @@ -470,6 +473,7 @@ func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents() {
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
},
true,
"",
},
}

Expand All @@ -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
Expand Down

0 comments on commit 434b308

Please sign in to comment.