This is a test for #34224. The test can be tested by reverting that pull request and observing the test failure.
Also, includes a small test cleanup/refactor.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34241.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
https://github.com/bitcoin/bitcoin/actions/runs/20858499232/job/59931634182?pr=34241#step:8:4476:
test 2026-01-09T17:12:46.225024Z TestFramework (ERROR): Unexpected exception
Traceback (most recent call last):
File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/test_framework.py", line 142, in main
self.run_test()
File "/home/runner/work/bitcoin/bitcoin/ci_build/test/functional/feature_init.py", line 300, in run_test
self.init_stress_test_interrupt()
File "/home/runner/work/bitcoin/bitcoin/ci_build/test/functional/feature_init.py", line 93, in init_stress_test_interrupt
sigterm_node()
File "/home/runner/work/bitcoin/bitcoin/ci_build/test/functional/feature_init.py", line 56, in sigterm_node
assert_equal(0, node.process.wait())
File "/home/runner/work/bitcoin/bitcoin/test/functional/test_framework/util.py", line 80, in assert_equal
raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(0 == 1)
test 2026-01-09T17:12:46.226511Z TestFramework (DEBUG): Closing down network thread
Nice. Everything works as expected:
I'll rebase once the fix is merged.
This refactor can be reviewed with:
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
This split makes the code easier to read, modify, and understand.
ACK fa16b275fa94f66067c94fb8d0854859df6953b8