Run all tests with try-runtime feature enabled (#14396)

* Run all tests with `try-runtime` feature enabled

There are some tests that are guarded behind the `try-runtime` feature which are currently not being
executed. This pull requests changes this and enables the feature for the test run.

* Add some docs

* Rename variable
This commit is contained in:
Bastian Köcher
2023-06-16 12:16:19 +02:00
committed by GitHub
parent 4311411133
commit 53f4b4df76
7 changed files with 46 additions and 22 deletions
+1 -1
View File
@@ -499,7 +499,7 @@ mod test {
// The pre_upgrade hook fails:
let err = v3::MigrateToV4::<Test>::pre_upgrade().unwrap_err();
assert!(err == "Call is too large".into());
assert_eq!(DispatchError::from("Call is too large."), err);
// But the migration itself works:
let _w = v3::MigrateToV4::<Test>::on_runtime_upgrade();