pytest: allow more elaborate bitcoin-cli override.

In particular, this lets us intercept individual commands, such as
estimatesmartfee.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-08-22 09:42:57 +09:30
committed by Christian Decker
parent 3d8836c1e5
commit 5e20eedb41
3 changed files with 21 additions and 9 deletions

View File

@@ -1094,7 +1094,7 @@ def test_fundee_forget_funding_tx_unconfirmed(node_factory, bitcoind):
time.sleep(1)
# Prevent funder from broadcasting funding tx.
l1.fake_bitcoind_fail(1)
l1.fake_bitcoind_fail('exit 1')
# Fund the channel.
# The process will complete, but funder will be unable
# to broadcast and confirm funding tx.