From 1940f93f20552afbf1ca1c1bdec54b025003c513 Mon Sep 17 00:00:00 2001 From: Feliciss <10203-feliciss@users.noreply.0xacab.org> Date: Fri, 23 Aug 2024 02:01:23 +0900 Subject: [PATCH] [gh-2478] add assert. --- crates/rooch/src/commands/transaction/mod.rs | 2 +- crates/testsuite/features/cmd.feature | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/rooch/src/commands/transaction/mod.rs b/crates/rooch/src/commands/transaction/mod.rs index fcae7e004..38c1ba3bb 100644 --- a/crates/rooch/src/commands/transaction/mod.rs +++ b/crates/rooch/src/commands/transaction/mod.rs @@ -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; diff --git a/crates/testsuite/features/cmd.feature b/crates/testsuite/features/cmd.feature index dda496d78..ff3b33ea3 100644 --- a/crates/testsuite/features/cmd.feature +++ b/crates/testsuite/features/cmd.feature @@ -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"