-
Notifications
You must be signed in to change notification settings - Fork 379
Conversation
@NachoPal any problems with this? |
All good |
parachains/integration-tests/emulated/assets/asset-hub-westend/src/tests/transact.rs
Show resolved
Hide resolved
Westend::child_location_of(AssetHubWestend::para_id()).into(); | ||
|
||
let weight_limit = WeightLimit::Unlimited; | ||
let require_weight_at_most = Weight::from_parts(1000000000, 200000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be a follow up project (maybe good for someone new), but we should have some core set of "user stories" that other chains would use transact for, and then set the weight values in these tests as actual * some_factor_of_safety
, and if the tests fail in a new release because of weight, then we need to mark it as a breaking change. That way people can rely on these weights in tests to have some future proof-ness in their runtimes.
#[test] | ||
fn reserve_transfer_native_asset_from_relay_to_assets() { | ||
// Init tests variables | ||
let amount = POLKADOT_ED * 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let amount = POLKADOT_ED * 1000; | |
let amount = WESTEND_ED * 1000; |
#[test] | ||
fn teleport_native_assets_from_relay_to_assets_para() { | ||
// Init tests variables | ||
let amount = POLKADOT_ED * 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let amount = POLKADOT_ED * 1000; | |
let amount = WESTEND_ED * 1000; |
Things appear in westend before kusama, (example asset-conversion pallet) so it's helpful if we can write integration tests targeting westend.
Also updates emulator to handle host version changes (westend is on v5 of the host interface)