From 3b21ef4d5dc2e4aab6030da7844b24d96d326d05 Mon Sep 17 00:00:00 2001 From: Marcin Date: Tue, 19 Mar 2024 12:21:18 +0100 Subject: [PATCH] Fix fee calculation e2e test (#1659) # Description * Fix for e2e test after adjustment of adaptive fee mechanism from 25% to 50%. * fix for liminal integration tests build ## Type of change Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) Test passed: https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/8341568094/job/22828318727 --- bin/runtime/Cargo.toml | 1 + e2e-tests/src/test/fee.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/runtime/Cargo.toml b/bin/runtime/Cargo.toml index 32dc718196..2e63553c5f 100644 --- a/bin/runtime/Cargo.toml +++ b/bin/runtime/Cargo.toml @@ -141,6 +141,7 @@ try-runtime = [ "pallet-authorship/try-runtime", "pallet-balances/try-runtime", "pallet-elections/try-runtime", + "pallet-operations/try-runtime", "pallet-identity/try-runtime", "pallet-insecure-randomness-collective-flip/try-runtime", "pallet-session/try-runtime", diff --git a/e2e-tests/src/test/fee.rs b/e2e-tests/src/test/fee.rs index 01bcd419ea..7c37793f0b 100644 --- a/e2e-tests/src/test/fee.rs +++ b/e2e-tests/src/test/fee.rs @@ -106,7 +106,9 @@ pub async fn fee_calculation() -> anyhow::Result<()> { /// amount is equal to the existential deposit of the chain. async fn fill_blocks(block_occupancy: BlockOccupancy, blocks: u32, connection: &SignedConnection) { let limit = match block_occupancy { - BlockOccupancy::Low => 140, + // 850 transfers == 37.3% weight < 37.5% == 50% of 75% that is maximum real block occupancy for transfer transactions + BlockOccupancy::Low => 850, + // above 37.5% block weight BlockOccupancy::High => 1000, };