Skip to content

Commit

Permalink
Fix tests for staking subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist committed Jan 8, 2024
1 parent 2119ca3 commit 42e24de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wallet/wallet-cli-lib/tests/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async fn staking_locked_wallet(#[case] seed: Seed) {
"Success. The wallet is now locked."
);
assert_eq!(
test.exec("startstaking"),
test.exec("staking start"),
"Controller error: Wallet is locked"
);

Expand All @@ -49,7 +49,7 @@ async fn staking_locked_wallet(#[case] seed: Seed) {
test.exec("unlockprivatekeys Password123"),
"Success. The wallet is now unlocked."
);
assert_eq!(test.exec("startstaking"), "Staking started successfully");
assert_eq!(test.exec("staking start"), "Staking started successfully");

// It is not possible to lock the wallet while staking is running
assert_eq!(
Expand All @@ -58,7 +58,7 @@ async fn staking_locked_wallet(#[case] seed: Seed) {
);

// It is possible to lock the wallet after staking is stopped
assert_eq!(test.exec("stopstaking"), "Success");
assert_eq!(test.exec("staking stop"), "Success");
assert_eq!(
test.exec("lockprivatekeys"),
"Success. The wallet is now locked."
Expand Down

0 comments on commit 42e24de

Please sign in to comment.