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
+2 -3
View File
@@ -33,7 +33,7 @@ mod v0 {
use super::*;
use frame_support::traits::WrapperOpaque;
#[derive(Encode, Decode)]
#[derive(Encode, Decode, Default)]
pub(super) struct BoundedOpaqueNetworkState {
/// PeerId of the local node in SCALE encoded.
pub peer_id: Vec<u8>,
@@ -118,8 +118,7 @@ pub mod v1 {
}
}
#[cfg(test)]
#[cfg(feature = "try-runtime")]
#[cfg(all(feature = "try-runtime", test))]
mod test {
use super::*;
use crate::mock::{new_test_ext, Runtime as T};