]> git.bitcoin.ninja Git - rust-lightning/commit
Correct test struct initialization ordering
authorMatt Corallo <git@bluematt.me>
Tue, 15 Aug 2023 19:19:03 +0000 (19:19 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 15 Aug 2023 23:19:03 +0000 (23:19 +0000)
commite1bfea302930f9821b693637f4d28629e949e0d9
tree53d409c8d67f57d464b7ad2f10ae1ef23608c4b7
parent417e86679241624857c9e3258f1481bce3428b3e
Correct test struct initialization ordering

When reloading a node in the test framework, we end up with a new
`ChannelManager` that has references to various test util structs.
In order for the tests to compile reliably in the face of unrelated
changes, those test structs need to always be initialized before
both the new but also the original `ChannelManager`.

Here we make that change.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reload_tests.rs
lightning/src/ln/reorg_tests.rs