Randomize the `ConnectStyle` during tests 2022-05-new-chain-tests
authorMatt Corallo <git@bluematt.me>
Sun, 15 May 2022 19:13:43 +0000 (19:13 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 17 May 2022 20:19:38 +0000 (20:19 +0000)
commitb08387055403b287b448cc5867f8aaa650fae1e7
tree7c3b38ce9d169d5a41e3339b26d0e7edd6ed73ff
parentc639920dcae94d0a24941ace361630bf80c3d414
Randomize the `ConnectStyle` during tests

We have a bunch of fancy infrastructure to ensure we can connect
blocks using all our different connection interfaces, but we only
bother to use it in a few select tests.

This expands our use of `ConnectStyle` to most of our tests by
simply randomizing the style in each test. This makes our tests
non-deterministic, but we print the connection style at start so
that it's easy to reproduce a failure deterministically.
lightning/src/ln/functional_test_utils.rs