Skip to content
Snippets Groups Projects
Unverified Commit 8834a9bf authored by Clara van Staden's avatar Clara van Staden Committed by GitHub
Browse files

Snowbridge: Remove fee amount check from tests (#7436)

Remove the specific fee amount checks in integration tests, since it
changes every time weights are regenerated.
parent aa42debe
No related merge requests found
Pipeline #514227 waiting for manual action with stages
in 29 minutes and 10 seconds
...@@ -498,8 +498,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ...@@ -498,8 +498,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() {
assert!( assert!(
events.iter().any(|event| matches!( events.iter().any(|event| matches!(
event, event,
RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: _amount })
if *who == TREASURY_ACCOUNT.into() && *amount == 16903333 if *who == TREASURY_ACCOUNT.into()
)), )),
"Snowbridge sovereign takes local fee." "Snowbridge sovereign takes local fee."
); );
...@@ -507,8 +507,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ...@@ -507,8 +507,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() {
assert!( assert!(
events.iter().any(|event| matches!( events.iter().any(|event| matches!(
event, event,
RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: _amount })
if *who == assethub_sovereign && *amount == 2680000000000, if *who == assethub_sovereign
)), )),
"AssetHub sovereign takes remote fee." "AssetHub sovereign takes remote fee."
); );
...@@ -668,8 +668,8 @@ fn send_eth_asset_from_asset_hub_to_ethereum_and_back() { ...@@ -668,8 +668,8 @@ fn send_eth_asset_from_asset_hub_to_ethereum_and_back() {
assert!( assert!(
events.iter().any(|event| matches!( events.iter().any(|event| matches!(
event, event,
RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: _amount })
if *who == TREASURY_ACCOUNT.into() && *amount == 16903333 if *who == TREASURY_ACCOUNT.into()
)), )),
"Snowbridge sovereign takes local fee." "Snowbridge sovereign takes local fee."
); );
...@@ -677,8 +677,8 @@ fn send_eth_asset_from_asset_hub_to_ethereum_and_back() { ...@@ -677,8 +677,8 @@ fn send_eth_asset_from_asset_hub_to_ethereum_and_back() {
assert!( assert!(
events.iter().any(|event| matches!( events.iter().any(|event| matches!(
event, event,
RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: _amount })
if *who == assethub_sovereign && *amount == 2680000000000, if *who == assethub_sovereign
)), )),
"AssetHub sovereign takes remote fee." "AssetHub sovereign takes remote fee."
); );
......
...@@ -902,8 +902,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ...@@ -902,8 +902,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() {
assert!( assert!(
events.iter().any(|event| matches!( events.iter().any(|event| matches!(
event, event,
RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: _amount })
if *who == TreasuryAccount::get().into() && *amount == 5071000000 if *who == TreasuryAccount::get().into()
)), )),
"Snowbridge sovereign takes local fee." "Snowbridge sovereign takes local fee."
); );
...@@ -911,8 +911,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() { ...@@ -911,8 +911,8 @@ fn send_weth_asset_from_asset_hub_to_ethereum() {
assert!( assert!(
events.iter().any(|event| matches!( events.iter().any(|event| matches!(
event, event,
RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount }) RuntimeEvent::Balances(pallet_balances::Event::Minted { who, amount: _amount })
if *who == assethub_sovereign && *amount == 2680000000000, if *who == assethub_sovereign
)), )),
"AssetHub sovereign takes remote fee." "AssetHub sovereign takes remote fee."
); );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment