From b29e8661c509b4ac8b8275b437b8c3467d4d2958 Mon Sep 17 00:00:00 2001 From: Lumir Mrkva Date: Mon, 25 Jul 2022 22:51:16 +0200 Subject: [PATCH] updated integration test --- Cargo.lock | 2 +- integration-tests/Cargo.toml | 2 +- integration-tests/src/non_native_fee.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7f16c0363ac..d56090a1bb4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8746,7 +8746,7 @@ dependencies = [ [[package]] name = "runtime-integration-tests" -version = "0.7.0" +version = "0.7.1" dependencies = [ "basilisk-runtime", "cumulus-pallet-aura-ext", diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml index 6f07b22a9d1..4da711ee343 100644 --- a/integration-tests/Cargo.toml +++ b/integration-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runtime-integration-tests" -version = "0.7.0" +version = "0.7.1" description = "Integration tests" authors = ["GalacticCouncil"] edition = "2021" diff --git a/integration-tests/src/non_native_fee.rs b/integration-tests/src/non_native_fee.rs index 00d24f8d42a..b5b4bb11f98 100644 --- a/integration-tests/src/non_native_fee.rs +++ b/integration-tests/src/non_native_fee.rs @@ -33,7 +33,7 @@ pub fn basilisk_run_to_block(to: BlockNumber) { } #[test] -fn non_native_fee_payment_works() { +fn non_native_fee_payment_works_with_xyk_spot_price() { use pallet_transaction_multi_payment::TransactionMultiPaymentDataProvider; TestNet::reset(); @@ -108,14 +108,14 @@ fn non_native_fee_payment_works() { )); let dave_balance = basilisk_runtime::Tokens::free_balance(1, &AccountId::from(DAVE)); - assert_eq!(dave_balance, 968_048_559_011_998); + assert_eq!(dave_balance, 968_046_450_495_217); expect_basilisk_events(vec![ pallet_transaction_multi_payment::Event::FeeWithdrawn { account_id: DAVE.into(), asset_id: 1, native_fee_amount: 55_738_705_000_000, - non_native_fee_amount: 31_951_440_988_002, + non_native_fee_amount: 31_953_549_504_783, destination_account_id: basilisk_runtime::MultiTransactionPayment::get_fee_receiver(), } .into(),