From fa022fc4dfb695b49d74ba1ae5d9eccc9a2e8680 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sun, 13 Oct 2024 18:47:59 +0200 Subject: [PATCH] support/testing: package: bitcoin: fix test by increasing timeouts Generating Bitcoins to an address can take longer than the current timeout, on slow runners. This commit fixes this issue by increasing the timeout on specific commands. This issue was also observed more frequently on newer bitcoin-core version 28.0. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/7782083081 Signed-off-by: Julien Olivain Signed-off-by: Thomas Petazzoni (cherry picked from commit 859c4ea5f74f713777ffa980f1627b46a311bdd4) Signed-off-by: Peter Korsgaard --- support/testing/tests/package/test_bitcoin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/testing/tests/package/test_bitcoin.py b/support/testing/tests/package/test_bitcoin.py index 93aa9383ab..1f00345a12 100644 --- a/support/testing/tests/package/test_bitcoin.py +++ b/support/testing/tests/package/test_bitcoin.py @@ -130,7 +130,7 @@ class TestBitcoin(infra.basetest.BRTest): # #1. We should receive the 50 BTC reward at this address. cmd = self.cli_cmd cmd += f" generatetoaddress {req_blk_count} {btc_addr1}" - self.assertRunOk(cmd) + self.assertRunOk(cmd, timeout=30) # We should now see the previously created blocks. cur_blk_cnt = self.get_block_count() @@ -169,7 +169,7 @@ class TestBitcoin(infra.basetest.BRTest): # the previous transaction (but this will not give the 50 BTC # reward). cmd = f"{self.cli_cmd} generatetoaddress 1 {btc_addr2}" - self.assertRunOk(cmd) + self.assertRunOk(cmd, timeout=30) # We should see one more block. cur_blk_cnt = self.get_block_count()