Added xcmp_queue_send_xcm_works test (#1422)

This PR adds test case for successful `send_xcm` for `XcmpQueue`
according to the opened HRMP channel to the sibling parachain.
This commit is contained in:
Branislav Kontur
2023-09-15 10:30:20 +02:00
committed by GitHub
parent b35b28ca4b
commit 11088bcfc0
5 changed files with 38 additions and 9 deletions
+3 -3
View File
@@ -1400,12 +1400,12 @@ impl<T: Config> Pallet<T> {
CustomValidationHeadData::<T>::put(head_data);
}
/// Open HRMP channel for using it in benchmarks.
/// Open HRMP channel for using it in benchmarks or tests.
///
/// The caller assumes that the pallet will accept regular outbound message to the sibling
/// `target_parachain` after this call. No other assumptions are made.
#[cfg(feature = "runtime-benchmarks")]
pub fn open_outbound_hrmp_channel_for_benchmarks(target_parachain: ParaId) {
#[cfg(any(feature = "runtime-benchmarks", feature = "std"))]
pub fn open_outbound_hrmp_channel_for_benchmarks_or_tests(target_parachain: ParaId) {
RelevantMessagingState::<T>::put(MessagingStateSnapshot {
dmq_mqc_head: Default::default(),
relay_dispatch_queue_remaining_capacity: Default::default(),