Skip to content

Commit

Permalink
[gh-2478] add assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
Feliciss committed Aug 22, 2024
1 parent 7a939a8 commit 1940f93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rooch/src/commands/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use crate::cli_types::CommandAction;
use crate::commands::transaction::commands::{
build::BuildCommand, get_transactions_by_hash::GetTransactionsByHashCommand,
get_transactions_by_order::GetTransactionsByOrderCommand,
get_transactions_by_hash::GetTransactionsByHashCommand,
get_transactions_by_order::GetTransactionsByOrderCommand,
get_transactions_by_order::GetTransactionsByOrderCommand, submit::SubmitCommand,
};
use async_trait::async_trait;
Expand Down
1 change: 1 addition & 0 deletions crates/testsuite/features/cmd.feature
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Feature: Rooch CLI integration tests
Then cmd: "transaction get-transactions-by-hash --hashes {{$.transaction[-1].data[0].execution_info.tx_hash}}"
Then cmd: "transaction build --function rooch_framework::empty::empty --json"
Then cmd: "transaction submit --signed-tx-hex {{$.transaction[-1]}}"
Then assert: "{{$.transaction[-1].execution_info.status.type}} == executed"

# alias tx for transaction
Then cmd: "tx get-transactions-by-order --cursor 1 --limit 2 --descending-order true"
Expand Down

0 comments on commit 1940f93

Please sign in to comment.