This commit is contained in:
Bastian Köcher
2022-01-26 13:35:09 +01:00
committed by GitHub
parent 7c07192c6e
commit 109f73092f
2 changed files with 5 additions and 2 deletions
@@ -2199,6 +2199,7 @@ mod tests {
#[test] #[test]
#[should_panic] #[should_panic]
#[cfg(debug_assertions)]
fn receive_messages_panics_in_debug_mode_if_callback_is_wrong() { fn receive_messages_panics_in_debug_mode_if_callback_is_wrong() {
run_test(|| { run_test(|| {
TestOnDeliveryConfirmed1::set_consumed_weight_per_message( TestOnDeliveryConfirmed1::set_consumed_weight_per_message(
@@ -2331,6 +2332,7 @@ mod tests {
#[test] #[test]
#[should_panic] #[should_panic]
#[cfg(debug_assertions)]
fn message_accepted_panics_in_debug_mode_if_callback_is_wrong() { fn message_accepted_panics_in_debug_mode_if_callback_is_wrong() {
run_test(|| { run_test(|| {
TestOnMessageAccepted::set_consumed_weight_per_message( TestOnMessageAccepted::set_consumed_weight_per_message(
@@ -21,8 +21,9 @@ use futures::FutureExt;
use polkadot_node_network_protocol::jaeger; use polkadot_node_network_protocol::jaeger;
use polkadot_node_primitives::{BlockData, ErasureChunk, PoV, SpawnNamed}; use polkadot_node_primitives::{BlockData, ErasureChunk, PoV, SpawnNamed};
use polkadot_node_subsystem_util::runtime::RuntimeInfo; use polkadot_node_subsystem_util::runtime::RuntimeInfo;
use polkadot_primitives::v1::{ use polkadot_primitives::{
BlockNumber, CoreState, GroupIndex, Hash, Id, ScheduledCore, SessionIndex, SessionInfo, v1::{BlockNumber, CoreState, GroupIndex, Hash, Id, ScheduledCore, SessionIndex},
v2::SessionInfo,
}; };
use polkadot_subsystem::{ use polkadot_subsystem::{
messages::{ messages::{