From 19b7d5c6c2ae879667df2c3aa73097f118847e5d Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Thu, 16 Nov 2023 12:42:31 +0000 Subject: [PATCH] integration-flipper, mapping-integration-tests --- .../integration-flipper/lib.rs | 10 +++++----- integration-tests/mapping-integration-tests/lib.rs | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/integration-tests/lang-err-integration-tests/integration-flipper/lib.rs b/integration-tests/lang-err-integration-tests/integration-flipper/lib.rs index 213fbca6776..496a478578f 100644 --- a/integration-tests/lang-err-integration-tests/integration-flipper/lib.rs +++ b/integration-tests/lang-err-integration-tests/integration-flipper/lib.rs @@ -87,7 +87,7 @@ pub mod integration_flipper { let initial_value = client .call(&ink_e2e::alice(), &get) .dry_run() - .await + .await? .return_value(); let flip = call.flip(); @@ -104,7 +104,7 @@ pub mod integration_flipper { let flipped_value = client .call(&ink_e2e::alice(), &get) .dry_run() - .await + .await? .return_value(); assert!(flipped_value != initial_value); @@ -127,7 +127,7 @@ pub mod integration_flipper { let initial_value = client .call(&ink_e2e::bob(), &get) .dry_run() - .await + .await? .return_value(); let err_flip = call.err_flip(); @@ -136,13 +136,13 @@ pub mod integration_flipper { assert!(matches!( err_flip_call_result, - Err(ink_e2e::Error::::CallExtrinsic(_)) + Err(ink_e2e::Error::CallExtrinsic(_)) )); let flipped_value = client .call(&ink_e2e::bob(), &get) .dry_run() - .await + .await? .return_value(); assert!(flipped_value == initial_value); diff --git a/integration-tests/mapping-integration-tests/lib.rs b/integration-tests/mapping-integration-tests/lib.rs index 0836e5f245a..fd5c19c6f1f 100755 --- a/integration-tests/mapping-integration-tests/lib.rs +++ b/integration-tests/mapping-integration-tests/lib.rs @@ -178,7 +178,7 @@ mod mapping_integration_tests { let balance = client .call(&ink_e2e::alice(), &get) .dry_run() - .await + .await? .return_value(); assert!(size.is_none()); @@ -218,7 +218,7 @@ mod mapping_integration_tests { let is_there = client .call(&ink_e2e::bob(), &contains) .dry_run() - .await + .await? .return_value(); assert!(is_there); @@ -265,7 +265,7 @@ mod mapping_integration_tests { let balance = client .call(&ink_e2e::charlie(), &get) .dry_run() - .await + .await? .return_value(); assert_eq!(balance, Some(10_000)); @@ -311,7 +311,7 @@ mod mapping_integration_tests { let balance = client .call(&ink_e2e::dave(), &get) .dry_run() - .await + .await? .return_value(); assert_eq!(balance, None); @@ -360,7 +360,7 @@ mod mapping_integration_tests { let is_there = client .call(&ink_e2e::eve(), &contains) .dry_run() - .await + .await? .return_value(); assert!(!is_there); @@ -397,7 +397,7 @@ mod mapping_integration_tests { let expected_insert_result = client .call(&ink_e2e::ferdie(), &insert) .dry_run() - .await + .await? .return_value(); let received_insert_result = Err(crate::mapping_integration_tests::ContractError::ValueTooLarge); @@ -407,7 +407,7 @@ mod mapping_integration_tests { let received_mapping_value = client .call(&ink_e2e::ferdie(), &call.try_get_names()) .dry_run() - .await + .await? .return_value(); let expected_mapping_value = Some(Ok(names)); assert_eq!(received_mapping_value, expected_mapping_value);