Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes tests
  • Loading branch information
bkchr committed Nov 13, 2018
commit 9d5d595f802fcc867ed52f8db0c3bca9671fa9df
1 change: 0 additions & 1 deletion core/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,6 @@ pub(crate) mod tests {
use test_client::client::backend::Backend as TestBackend;
use test_client::BlockBuilderExt;
use test_client::runtime::{self, Block, Transfer, ClientWithApi, test_api::TestAPI};
use codec::{Decode, Encode};

/// Returns tuple, consisting of:
/// 1) test client pre-filled with blocks changing balances;
Expand Down
21 changes: 4 additions & 17 deletions core/service/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@ impl<F: ServiceFactory> TestNet<F> {

pub fn connectivity<F: ServiceFactory>(spec: FactoryChainSpec<F>) where
<F as ServiceFactory>::RuntimeApi:
Send +
Sync +
client::runtime_api::Core<<F as service::ServiceFactory>::Block, primitives::AuthorityId, Error=client::error::Error, OverlayedChanges=client::runtime_api::OverlayedChanges> +
client::runtime_api::BlockBuilder<<F as service::ServiceFactory>::Block, Error=client::error::Error, OverlayedChanges=client::runtime_api::OverlayedChanges> +
client::runtime_api::ConstructRuntimeApi<Block=<F as service::ServiceFactory>::Block>
client::runtime_api::BlockBuilder<<F as service::ServiceFactory>::Block>
{
const NUM_NODES: u32 = 10;
{
Expand Down Expand Up @@ -227,12 +223,8 @@ where
B: Fn(&F::FullService) -> ImportBlock<F::Block>,
E: Fn(&F::FullService) -> FactoryExtrinsic<F>,
<F as ServiceFactory>::RuntimeApi:
Send +
Sync +
client::runtime_api::Core<<F as service::ServiceFactory>::Block, primitives::AuthorityId, Error=client::error::Error, OverlayedChanges=client::runtime_api::OverlayedChanges> +
client::runtime_api::BlockBuilder<<F as service::ServiceFactory>::Block, Error=client::error::Error, OverlayedChanges=client::runtime_api::OverlayedChanges> +
client::runtime_api::TaggedTransactionQueue<<F as service::ServiceFactory>::Block, Error=client::error::Error> +
client::runtime_api::ConstructRuntimeApi<Block=<F as service::ServiceFactory>::Block>
client::runtime_api::BlockBuilder<<F as service::ServiceFactory>::Block> +
client::runtime_api::TaggedTransactionQueue<<F as service::ServiceFactory>::Block>
{
const NUM_NODES: u32 = 10;
const NUM_BLOCKS: usize = 512;
Expand Down Expand Up @@ -270,12 +262,7 @@ pub fn consensus<F>(spec: FactoryChainSpec<F>, authorities: Vec<String>)
where
F: ServiceFactory,
<F as ServiceFactory>::RuntimeApi:
Send +
Sync +
client::runtime_api::Core<<F as service::ServiceFactory>::Block, primitives::AuthorityId, Error=client::error::Error, OverlayedChanges=client::runtime_api::OverlayedChanges> +
client::runtime_api::BlockBuilder<<F as service::ServiceFactory>::Block, Error=client::error::Error, OverlayedChanges=client::runtime_api::OverlayedChanges> +
client::runtime_api::ConstructRuntimeApi<Block=<F as service::ServiceFactory>::Block>

client::runtime_api::BlockBuilder<<F as service::ServiceFactory>::Block>
{
const NUM_NODES: u32 = 20;
const NUM_BLOCKS: u64 = 200;
Expand Down