Skip to content

Commit

Permalink
fix wallet cli test expected message
Browse files Browse the repository at this point in the history
  • Loading branch information
OBorce committed Jan 31, 2024
1 parent 16b143c commit c1aa1c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/functional/test_framework/wallet_cli_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from typing import Optional, List, Tuple, Union

TEN_MB = 10*2**20
READ_TIMEOUT_SEC = 3
READ_TIMEOUT_SEC = 30
DEFAULT_ACCOUNT_INDEX = 0

@dataclass
Expand Down
1 change: 0 additions & 1 deletion test/functional/wallet_tx_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
7 changes: 3 additions & 4 deletions wallet/wallet-cli-lib/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c1aa1c2

Please sign in to comment.