support/testing: test_bitcoin.py: use assertRunNotOk()

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 830e0f49bb)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:47:56 +02:00
committed by Thomas Perale
parent 0a891269b9
commit 2500d8534f

View File

@@ -101,8 +101,7 @@ class TestBitcoin(infra.basetest.BRTest):
# The bitcoin daemon is not started. A client ping is expected
# to fail.
ping_cmd = f"{self.cli_cmd} ping"
_, ret = self.emulator.run(ping_cmd)
self.assertNotEqual(ret, 0)
self.assertRunNotOk(ping_cmd)
# Start the daemon.
cmd = f"bitcoind -regtest -daemonwait -fallbackfee={btc_fee:f}"