Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin/bitcoin#30921: test: generalize HasReason and use it in…
… FailFmtWithError 6c3c619 test: generalize HasReason and use it in FailFmtWithError (Lőrinc) Pull request description: Standardized boost exception checking in recent tests introduced in bitcoin/bitcoin#30546 (comment) by extending `HasReason` to accept `const char*` through `string_view` in `operator()`. Note that `HasReason` only checks partial matches - but since we're specifying the whole error string, it doesn't affect us in this case. ACKs for top commit: maflcko: review ACK 6c3c619 hodlinator: ACK 6c3c619 Tree-SHA512: 740fb18b8fea78e4eb9740ceb0fe75d37246c28cfa2638b9d093e9514dd6d7926cc5be9ec57f8027cca3aa9d616e8c54322d2401cfa67fd25282f7816e63532d
- Loading branch information