From c3f0893c86586ba431460e5b3e1d34685a0dc78d Mon Sep 17 00:00:00 2001 From: Feliciss <10203-feliciss@users.noreply.0xacab.org> Date: Fri, 23 Aug 2024 01:54:28 +0900 Subject: [PATCH] [gh-2473] add asserts. --- crates/testsuite/features/cmd.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/testsuite/features/cmd.feature b/crates/testsuite/features/cmd.feature index a0933286a..26dd126cc 100644 --- a/crates/testsuite/features/cmd.feature +++ b/crates/testsuite/features/cmd.feature @@ -68,8 +68,9 @@ Feature: Rooch CLI integration tests Then cmd: "transaction get-transactions-by-order --cursor 0 --limit 1 --descending-order false" 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 assert: "'{{$.transaction[-1]}}' == '0ea3bb55c14aec8e074cd48c6a850526aa46965e176df53fadb433adeeeb56570000000000000000040000000000000000e1f5050000000001000000000000000000000000000000000000000000000000000000000000000305656d70747905656d7074790000'" - Then cmd: "transaction sign --tx-hex {{$.transaction[-1]}} --json + Then assert: "'{{$.transaction[-1]}}' not_contains error" + Then cmd: "transaction sign --tx-hex {{$.transaction[-1]}} --json" + Then assert: "'{{$.transaction[-1]}}' not_contains error" # alias tx for transaction Then cmd: "tx get-transactions-by-order --cursor 1 --limit 2 --descending-order true"