Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix cli tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Jun 18, 2019
1 parent 63f1b0f commit d4884f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -281,7 +281,6 @@ mod tests {
}

#[test]
#[ignore]
fn test_sync() {
let chain_spec = crate::chain_spec::tests::integration_test_config_with_single_authority();

Expand Down Expand Up @@ -336,7 +335,7 @@ mod tests {

let mut index = 0;
let extrinsic_factory = |service: &<Factory as ServiceFactory>::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();
Expand Down
1 change: 1 addition & 0 deletions srml/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit d4884f7

Please sign in to comment.