Skip to content

Commit

Permalink
Girazoki fix tests (#31)
Browse files Browse the repository at this point in the history
* add expected blocktime

* add commit

* fix tests

* remove from parameter_types
  • Loading branch information
girazoki authored Mar 15, 2024
1 parent 1bb7b65 commit 2ceb4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/async-backing/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ impl pallet_timestamp::Config for Test {
parameter_types! {
pub const AllowMultipleBlocksPerSlot: bool = true;
pub const SlotDuration: u64 = 12000;
type ExpectedBlockTime = ConstU64<1>;
}

impl async_backing::Config for Test {
type AllowMultipleBlocksPerSlot = AllowMultipleBlocksPerSlot;
type GetAndVerifySlot = RelaySlot;
type ExpectedBlockTime = ConstU64<1>;
}

/// Build genesis storage according to the mock runtime.
Expand Down

0 comments on commit 2ceb4a9

Please sign in to comment.