diff options
author | Antoine A <> | 2023-10-05 00:45:03 +0200 |
---|---|---|
committer | Antoine A <> | 2023-10-05 00:45:03 +0200 |
commit | 2e685701559118da856a0cde10849d82a112c9c7 (patch) | |
tree | f30d0bd02d43e45f14b68469d80090aab3688366 /instrumentation/src/btc.rs | |
parent | b898b96922ac80325d6371c0aafa3ee55c2c21b2 (diff) | |
download | depolymerization-2e685701559118da856a0cde10849d82a112c9c7.tar.gz depolymerization-2e685701559118da856a0cde10849d82a112c9c7.tar.bz2 depolymerization-2e685701559118da856a0cde10849d82a112c9c7.zip |
Test support for bitcoind 24.1 and small improvements
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"); |