diff options
Diffstat (limited to 'instrumentation/src/btc.rs')
-rw-r--r-- | instrumentation/src/btc.rs | 18 |
1 files changed, 5 insertions, 13 deletions
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"); |