-
Notifications
You must be signed in to change notification settings - Fork 379
Fix experimental aura
config and comment tests
#3057
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
aura
configaura
config and comment tests
@@ -185,6 +185,7 @@ fn limited_teleport_native_assets_from_relay_to_system_para_works() { | |||
/// Limited Teleport of native asset from System Parachain to Relay Chain | |||
/// should work when there is enough balance in Relay Chain's `CheckAccount` | |||
#[test] | |||
#[cfg(feature = "FIXME-IGNORED")] // <https://github.com/paritytech/cumulus/issues/3027> |
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.
Agreed seems fine as long as runtime-benchmarks is not enabled:
#[cfg(feature = "FIXME-IGNORED")] // <https://github.com/paritytech/cumulus/issues/3027> | |
#[cfg(not(feature = "runtime-benchmarks"))] // <https://github.com/paritytech/cumulus/issues/3027> |
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.
The crate does not have that feature and is also not propagating it downwards...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@@ -124,6 +124,8 @@ impl pallet_aura::Config for Test { | |||
type MaxAuthorities = ConstU32<100_000>; | |||
type DisabledValidators = (); | |||
type AllowMultipleBlocksPerSlot = ConstBool<false>; | |||
#[cfg(feature = "experimental")] | |||
type SlotDuration = pallet_aura::MinimumPeriodTimesTwo<Self>; |
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.
Is there a difference between this and ConstU64<SLOT_DURATION>
? @rphmeier
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.
Not in practice. Though semantically they have different meanings.
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.
Does the change look good to you @rphmeier? The MR is looking for review approvals since we want to do the monorepo migration tomorrow.
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.
Looks fine to me
bot merge |
(preparation for the monorepo)
Changes:
experimental
feature is enabled in the workspace, thenpallet-aura
expects an additional config item.runtime-benchmarks
feature is enabled in the workspace. Fix all ignored system parachain integration tests #3027 is linked in the code.