Skip to content

Commit

Permalink
replace asset!(.. == ..) with assert_eq! and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 30, 2024
1 parent 859c8db commit 7987124
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions substrate/frame/nomination-pools/benchmarking/src/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ mod benchmarks {
RuntimeOrigin::Signed(slash_reporter.clone()).into(),
depositor_lookup.clone(),
)
.is_ok(),
.is_ok(),
);
}

Expand Down Expand Up @@ -1112,7 +1112,7 @@ mod benchmarks {
RuntimeOrigin::Signed(joiner.clone()).into(),
joiner_lookup.clone()
)
.is_err());
.is_err());
}
}

Expand All @@ -1131,13 +1131,13 @@ mod benchmarks {
RuntimeOrigin::Signed(depositor.clone()).into(),
1u32.into(),
)
.is_ok(),
.is_ok(),
);
}
// this queries agent balance if `DelegateStake` strategy.
assert!(
T::StakeAdapter::total_balance(Pool::from(pool_account.clone())) ==
Some(deposit_amount)
assert_eq!(
T::StakeAdapter::total_balance(Pool::from(pool_account.clone())),
Some(deposit_amount)
);
}

Expand Down Expand Up @@ -1176,7 +1176,7 @@ mod benchmarks {
RuntimeOrigin::Signed(depositor.clone()).into(),
depositor_lookup.clone(),
)
.is_ok(),
.is_ok(),
);
}
// verify balances once more.
Expand Down

0 comments on commit 7987124

Please sign in to comment.