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

Use the helper to simplify the test.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Peter Korsgaard
2026-06-18 14:47:56 +02:00
parent eb0ef1fd98
commit 830e0f49bb

View File

@@ -108,8 +108,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}"