Merge #21121: [test] Small unit test improvements, including helper to make mempool transaction
pull/826/head1363b6c27d
[doc / util] Use comments to clarify time unit for int64_t type. (Amiti Uttarwar)47a7a1687d
[util] Introduce a SetMockTime that takes chrono time (Amiti Uttarwar)df6a5fc1df
[util] Change GetMockTime to return chrono type instead of int (Amiti Uttarwar)a2d908e1da
[test] Throw error instead of segfaulting in failure scenario (Amiti Uttarwar)9a3bbe8fc5
[test] Introduce a unit test helper to create a valid mempool transaction. (Amiti Uttarwar) Pull request description: Some miscellaneous improvements that came up when working on #21061 - The first commit is a helper to make valid mempool transactions & submit via ATMP. Introducing in this PR, using in #21061. - The second commit is a small improvement in `miner_tests.cpp` that uses `BOOST_REQUIRE_EQUAL` to properly terminate the program instead of segfaulting in the failure scenario where the blocks do not include the expected number of transactions. - The third commit changes the function signature of `GetMockTime()` to return a chrono type. - The fourth & fifth commit overload `SetMockTime` to also accept chrono type, and adds documentation to indicate that the `int64_t` function signature is deprecated. ACKs for top commit: vasild: ACK1363b6c27d
Tree-SHA512: c72574d73668ea04ee4c33858f8de68b368780f445e05afb569aaf8564093f8112259b3afe93cf6dc2ee12a1ab5af1130ac73c16416132c1ba2851c054a67d78
commit
569b5ba1dc
Loading…
Reference in new issue