mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
a1f7623020qa: Only complain about expected messages that were not found (Hodlinator)1e54125e2erefactor(qa): Avoid unnecessary string operations (Hodlinator)a9021101dcqa: Replace always-escaped regexps with "X in Y" (Hodlinator)5c16e4631cdoc: Remove no longer correct comment (Hodlinator) Pull request description: * Remove incorrect docstring in `busy_wait_for_debug_log()`. * Replace nerfed regex searches with `X in Y` expressions. * Only compute the log string to be printed on failure *when we actually fail* instead of every 0.05s. * As we find each needle (expected message) in the haystack (log output), stop searching for it. **If we fail and time out, we will only complain about the needles (expected messages) we didn't find. On master we also include found needles, which is less helpful.** Found while developing a new test case in https://github.com/bitcoin/bitcoin/pull/33336#discussion_r2351892330 ACKs for top commit: l0rinc: Code review ACKa1f7623020maflcko: review ACKa1f7623020💨 Tree-SHA512: 191ea7647b0ea8b4220e37c62d176861c2fd0e3737aee3641b262915d9118f48953cf1204767c93a93a8fc78a44c2c29206fb390b44c59d99fc2aa7d12bf4889
46 KiB
Executable File
46 KiB
Executable File