Skip to content

Commit

Permalink
Remove classId from TestTxCreateProjectCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed Jul 21, 2024
1 parent c4b8c76 commit 1216bbd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions x/ecocredit/client/testsuite/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,19 @@ func (s *IntegrationTestSuite) TestTxCreateProjectCmd() {
}{
{
name: "missing args",
args: []string{"foo", "bar"},
args: []string{"foo"},
expErr: true,
expErrMsg: "Error: accepts 3 arg(s), received 2",
expErrMsg: "Error: accepts 2 arg(s), received 1",
},
{
name: "too many args",
args: []string{"foo", "bar", "baz", "foo"},
args: []string{"foo", "bar", "baz"},
expErr: true,
expErrMsg: "Error: accepts 3 arg(s), received 4",
expErrMsg: "Error: accepts 2 arg(s), received 3",
},
{
name: "missing from flag",
args: []string{
s.classID,
"US-WA",
"metadata",
},
Expand All @@ -150,7 +149,6 @@ func (s *IntegrationTestSuite) TestTxCreateProjectCmd() {
{
name: "valid",
args: []string{
s.classID,
"US-WA",
"metadata",
fmt.Sprintf("--%s=%s", flags.FlagFrom, admin),
Expand All @@ -159,7 +157,6 @@ func (s *IntegrationTestSuite) TestTxCreateProjectCmd() {
{
name: "valid from key-name",
args: []string{
s.classID,
"US-WA",
"metadata",
fmt.Sprintf("--%s=%s", flags.FlagFrom, s.val.Moniker),
Expand All @@ -168,7 +165,6 @@ func (s *IntegrationTestSuite) TestTxCreateProjectCmd() {
{
name: "valid with amino-json",
args: []string{
s.classID,
"US-WA",
"metadata",
fmt.Sprintf("--%s=%s", flags.FlagFrom, admin),
Expand Down

0 comments on commit 1216bbd

Please sign in to comment.