Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jan 31, 2024
1 parent 4d6f69a commit 0fb0e78
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions applications/minotari_console_wallet/src/wallet_modes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ mod test {
--start-time now --message Stressing_it_a_bit...!_(from_Feeling-a-bit-Generous) \
5c4f2a4b3f3f84e047333218a84fd24f581a9d7e4f23b78e3714e9d174427d615e
export-tx 123456789 --output-file pie.txt
# End of script file
"
.to_string();
Expand All @@ -511,6 +513,7 @@ mod test {
let mut make_it_rain = false;
let mut coin_split = false;
let mut discover_peer = false;
let mut export_tx = false;
let mut whois = false;
for command in commands {
match command {
Expand All @@ -524,7 +527,11 @@ mod test {
CliCommands::DiscoverPeer(_) => discover_peer = true,
CliCommands::Whois(_) => whois = true,
CliCommands::ExportUtxos(_) => {},
CliCommands::ExportTx(_) => {},
CliCommands::ExportTx(args) => {
if args.tx_id == 123456789 && args.output_file == Some("pie.txt".into()) {
export_tx = true
}
},
CliCommands::ExportSpentUtxos(_) => {},
CliCommands::CountUtxos => {},
CliCommands::SetBaseNode(_) => {},
Expand All @@ -538,6 +545,8 @@ mod test {
CliCommands::CreateTlsCerts => {},
}
}
assert!(get_balance && send_tari && burn_tari && make_it_rain && coin_split && discover_peer && whois);
assert!(
get_balance && send_tari && burn_tari && make_it_rain && coin_split && discover_peer && whois && export_tx
);
}
}

0 comments on commit 0fb0e78

Please sign in to comment.