From d4884f79f07c73b4fecca22c20aa84498c95662e Mon Sep 17 00:00:00 2001 From: David Craven Date: Tue, 18 Jun 2019 16:54:28 +0200 Subject: [PATCH] Fix cli tests. --- node/cli/src/service.rs | 5 ++--- srml/balances/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/cli/src/service.rs b/node/cli/src/service.rs index 058f58c9c2c7e..0b29747983f2d 100644 --- a/node/cli/src/service.rs +++ b/node/cli/src/service.rs @@ -220,7 +220,7 @@ mod tests { use consensus::CompatibleDigestItem; use consensus_common::{Environment, Proposer, ImportBlock, BlockOrigin, ForkChoiceStrategy}; use node_primitives::DigestItem; - use node_runtime::{Call, BalancesCall, UncheckedExtrinsic}; + use node_runtime::{BalancesCall, Call, CENTS, UncheckedExtrinsic}; use parity_codec::{Compact, Encode, Decode}; use primitives::{ crypto::Pair as CryptoPair, ed25519::Pair, blake2_256, @@ -281,7 +281,6 @@ mod tests { } #[test] - #[ignore] fn test_sync() { let chain_spec = crate::chain_spec::tests::integration_test_config_with_single_authority(); @@ -336,7 +335,7 @@ mod tests { let mut index = 0; let extrinsic_factory = |service: &::FullService| { - let amount = 1000; + let amount = 5 * CENTS; let to = AddressPublic::from_raw(bob.public().0); let from = AddressPublic::from_raw(charlie.public().0); let genesis_hash = service.client().block_hash(0).unwrap().unwrap(); diff --git a/srml/balances/src/lib.rs b/srml/balances/src/lib.rs index 22906d7d8275f..cc27fec81aec4 100644 --- a/srml/balances/src/lib.rs +++ b/srml/balances/src/lib.rs @@ -853,6 +853,7 @@ where Self::set_free_balance(who, new_balance); Ok(NegativeImbalance::new(value)) } else { + println!("{:?} {:?}", Self::free_balance(who), value); Err("too few free funds in account") } }