From 5da98974a9b6d7ce5c62c3d739c5d5c9ef182190 Mon Sep 17 00:00:00 2001 From: Boris Oncev Date: Wed, 31 Jan 2024 17:22:25 +0100 Subject: [PATCH] fix wallet cli test expected message --- test/functional/wallet_tx_compose.py | 1 - wallet/wallet-cli-lib/tests/basic.rs | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/functional/wallet_tx_compose.py b/test/functional/wallet_tx_compose.py index 7e94be7760..f6f0fd0d80 100644 --- a/test/functional/wallet_tx_compose.py +++ b/test/functional/wallet_tx_compose.py @@ -154,7 +154,6 @@ def make_output(pub_key_bytes): assert len(encoded_tx) < len(encoded_ptx) output = await wallet.sign_raw_transaction(encoded_tx) - self.log.info(f"sign output: '{output}'") assert_in("The transaction has been fully signed signed", output) signed_tx = output.split('\n')[2] diff --git a/wallet/wallet-cli-lib/tests/basic.rs b/wallet/wallet-cli-lib/tests/basic.rs index 46ab9c374b..863772f19f 100644 --- a/wallet/wallet-cli-lib/tests/basic.rs +++ b/wallet/wallet-cli-lib/tests/basic.rs @@ -159,10 +159,9 @@ async fn produce_blocks_decommission_genesis_pool(#[case] seed: Seed) { // submit the tx test.create_genesis_wallet(); assert_eq!(test.exec("wallet-sync"), "Success"); - assert_eq!( - test.exec(&format!("node-submit-transaction {signed_tx}")), - "The transaction was submitted successfully" - ); + assert!(test + .exec(&format!("node-submit-transaction {signed_tx}")) + .starts_with("The transaction was submitted successfully with ID")); // stake with the other acc assert_eq!(test.exec("account-select 1"), "Success");