Skip to content

Commit

Permalink
fix(xcm-builder): use previously unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoaguirre committed Aug 19, 2024
1 parent 98c3906 commit 08a82d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion polkadot/xcm/xcm-builder/src/process_xcm_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,15 @@ mod tests {
// ClearOrigin works.
assert!(process(v3_xcm(true)).unwrap());
assert!(process(v4_xcm(true)).unwrap());
assert!(process(v5_xcm(true)).unwrap());
}

#[test]
fn process_message_trivial_fails() {
// Trap makes it fail.
assert!(!process(v3_xcm(false)).unwrap());
assert!(!process(v3_xcm(false)).unwrap());
assert!(!process(v4_xcm(false)).unwrap());
assert!(!process(v5_xcm(false)).unwrap());
}

#[test]
Expand Down

0 comments on commit 08a82d1

Please sign in to comment.