Skip to content

Commit

Permalink
add test-write-state command test
Browse files Browse the repository at this point in the history
  • Loading branch information
ikehara committed Oct 21, 2019
1 parent 60ea573 commit f6a9156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/cligen/cligen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (ts *CligenTestSuite) TestCLI() {
return
}

caller := ts.Account(0)
caller := ts.Account(1)

for _, tc := range []struct{
suc bool
Expand All @@ -61,6 +61,8 @@ func (ts *CligenTestSuite) TestCLI() {
{ true, []string{"help"}, `.*$`},
{ true, []string{"test-get-sender"}, caller.Hex()+`\n$`},
{ true, []string{"test-get-contract-address"}, c.Hex()+`\n$`},
{ true, []string{"test-write-state", "--key", "a2V5", "--value", "dmFsdWU="}, `$`},
{ true, []string{"test-read-state", "--key", "a2V5"}, `dmFsdWU=\n$`},
} {
var rootCmd = &cobra.Command{
Use: "test",
Expand Down

0 comments on commit f6a9156

Please sign in to comment.