From 65fb71a8d3ad3a6d086a62ddf699e58c8d362ff2 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 4 Jan 2022 18:46:42 +0100 Subject: [PATCH] compile please --- client/src/tests.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/src/tests.rs b/client/src/tests.rs index bf22a63b07..c753e30b7b 100644 --- a/client/src/tests.rs +++ b/client/src/tests.rs @@ -86,17 +86,19 @@ pub async fn test_embedded_client() { let bob_address = AccountKeyring::Bob.to_account_id().into(); // verify that we can call dispatchable functions - let result = api + let success = api .tx() .balances() .transfer(bob_address, 100_000_000_000_000_000) .sign_and_submit_then_watch(&alice) .await + .unwrap() + .wait_for_finalized_success() + .await + .unwrap() + .has_event::() .unwrap(); // verify that we receive events - let success = result - .find_event::() - .unwrap(); - assert!(success.is_some()); + assert!(success); }