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 b9f1c38 commit bb5ee28
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions testing/examples/tungstenite_client_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +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);
match result {
Ok(_) => panic!("Expected an error"),
Err(e) => assert_eq!(e, 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 bb5ee28

Please sign in to comment.