Fix use of weight limit errors (#4358)

This commit is contained in:
Gavin Wood
2021-11-24 13:26:33 +01:00
committed by GitHub
parent e08b0fb506
commit c699ca9c7b
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -598,7 +598,7 @@ fn transacting_should_respect_max_weight_requirement() {
}]);
let weight_limit = 60;
let r = XcmExecutor::<TestConfig>::execute_xcm(Parent, message, weight_limit);
assert_eq!(r, Outcome::Incomplete(50, XcmError::TooMuchWeightRequired));
assert_eq!(r, Outcome::Incomplete(50, XcmError::MaxWeightInvalid));
}
#[test]