diff options
Diffstat (limited to 'instrumentation')
-rw-r--r-- | instrumentation/Cargo.toml | 3 | ||||
-rw-r--r-- | instrumentation/src/btc.rs | 18 |
2 files changed, 6 insertions, 15 deletions
diff --git a/instrumentation/Cargo.toml b/instrumentation/Cargo.toml index 4bc5432..984650a 100644 --- a/instrumentation/Cargo.toml +++ b/instrumentation/Cargo.toml @@ -37,6 +37,5 @@ rust-ini = "0.19.0" indicatif = "0.17.7" thread-local-panic-hook = "0.1.0" - [build-dependencies] -clap_mangen = "0.2.5" +clap_mangen = "0.2.14" diff --git a/instrumentation/src/btc.rs b/instrumentation/src/btc.rs index 5add69b..964f302 100644 --- a/instrumentation/src/btc.rs +++ b/instrumentation/src/btc.rs @@ -388,16 +388,8 @@ impl BtcCtx { pub fn stop_node(&mut self) { // We need to kill bitcoin gracefully to avoid corruption - #[cfg(unix)] - { - cmd_redirect_ok( - "kill", - &[&self.btc_node.0.id().to_string()], - "/dev/null", - "fill btc node", - ); - self.btc_node.0.wait().unwrap(); - } + self.common_rpc.stop().unwrap(); + self.btc_node.0.wait().unwrap(); } pub fn cluster_deco(&mut self) { @@ -1105,11 +1097,11 @@ pub fn maxfee(ctx: TestCtx) { total_amount += amount; ctx.debit(amount, rand_slice()); } - sleep(Duration::from_secs(3)); + ctx.mine(2); // Check no transaction happen - ctx.expect_wire_balance(wire, true); - ctx.expect_client_balance(client, true); + ctx.expect_wire_balance(wire, false); + ctx.expect_client_balance(client, false); } ctx.step("Good feed"); |