Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Nov 6, 2023
1 parent bb5ee28 commit e03ef62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/examples/ws_client_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn main() {
// Check for failed extrinsic failed onchain
let xt = api.balance_transfer_allow_death(MultiAddress::Id(bob.into()), bob_balance + 1);
let result = api.submit_and_watch_extrinsic_until(xt.clone(), XtStatus::InBlock);
assert_eq!(result, Err(DispatchError::Token(TokenError::FundsUnavailable)));
assert!(format!("{:?}", result).contains("DispatchError::Token(TokenError::FundsUnavailable)"));

// Check directly failed extrinsic (before actually submitted to a block)
let result = api.submit_and_watch_extrinsic_until(xt, XtStatus::InBlock);
Expand Down

0 comments on commit e03ef62

Please sign in to comment.