mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
Bkchr check all benches (#3180)
* Make sure CI checks all benchmarks * Fix babe
This commit is contained in:
@@ -95,7 +95,7 @@ cargo-check-benches:
|
||||
stage: test
|
||||
<<: *docker-env
|
||||
script:
|
||||
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches
|
||||
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches --all
|
||||
- sccache -s
|
||||
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ cargo run --release \-- \
|
||||
|
||||
Additional Substrate CLI usage options are available and may be shown by running `cargo run \-- --help`.
|
||||
|
||||
== WASM binaries
|
||||
=== WASM binaries
|
||||
|
||||
The WASM binaries are built during the normal `cargo build` process. To control the WASM binary building,
|
||||
we support multiple environment variables:
|
||||
|
||||
@@ -233,7 +233,7 @@ fn run_one_test() {
|
||||
let wait_for = futures::future::join_all(import_notifications);
|
||||
|
||||
let drive_to_completion = futures::future::poll_fn(|| { net.lock().poll(); Ok(Async::NotReady) });
|
||||
runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
|
||||
let _ = runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -56,6 +56,8 @@ impl_outer_event! {
|
||||
|
||||
srml_support::parameter_types! {
|
||||
pub const BlockHashCount: u64 = 250;
|
||||
pub const MaximumBlockWeight: u32 = 4 * 1024 * 1024;
|
||||
pub const MaximumBlockLength: u32 = 4 * 1024 * 1024;
|
||||
}
|
||||
#[derive(Clone, Eq, PartialEq)]
|
||||
pub struct Runtime;
|
||||
@@ -71,6 +73,8 @@ impl system::Trait for Runtime {
|
||||
type WeightMultiplierUpdate = ();
|
||||
type Event = Event;
|
||||
type BlockHashCount = BlockHashCount;
|
||||
type MaximumBlockWeight = MaximumBlockWeight;
|
||||
type MaximumBlockLength = MaximumBlockLength;
|
||||
}
|
||||
|
||||
impl module::Trait for Runtime {
|
||||
|
||||
Reference in New Issue
Block a user