mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 01:01:04 +00:00
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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user