lnd/peer
Elle Mouton dc353dc50e
multi: use MakeTestGraph everywhere for test graph creation
In this commit, we unify how all unit tests that make use of the graph
create their test ChannelGraph instance. This will make it easier to
ensure that once we plug in different graph DB implementations, that all
unit tests are run against all variants of the graph DB.

With this commit, `NewChannelGraph` is mainly only called via
`MakeTestGraph` for all tests _except_ for `TestGraphLoading` which
needs to be able to reload a ChannelGraph with the same backend. This
will be addressed in a follow-up commit once more helpers are defined.

Note that in all previous packages where we created a test graph using
`kvdb.GetBoltBackend`, we now need to add a `TestMain` function with a
call to `kvdb.RunTest` since the `MakeTestGraph` helper uses
`GetTestBackend` instead of `kvdb.GetBoltBackend` which requires an
embedded postgres instance to be running.
2025-05-22 14:14:42 +02:00
..
brontide.go discovery: pass context to ProcessRemoteAnnouncement 2025-05-22 14:14:37 +02:00
brontide_test.go peer: move existing chan closer init logic to new method 2025-03-18 11:44:20 -05:00
chan_observer.go peer: conditionally create rbf coop close fsm based on feature bits 2025-03-18 11:44:20 -05:00
daemon_adapters.go peer: conditionally create rbf coop close fsm based on feature bits 2025-03-18 11:44:20 -05:00
interfaces.go peer+lnwire: move LinkUpdater to lnwire 2024-03-06 11:59:19 -08:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
musig_chan_closer.go multi: update to fn v2 2024-12-04 13:19:00 -07:00
ping_manager.go peer+lnd: add new CLI option to control if we D/C on slow pongs 2025-05-15 16:36:38 +02:00
ping_manager_test.go peer+lnd: add new CLI option to control if we D/C on slow pongs 2025-05-15 16:36:38 +02:00
setup_test.go multi: use MakeTestGraph everywhere for test graph creation 2025-05-22 14:14:42 +02:00
test_utils.go multi: use MakeTestGraph everywhere for test graph creation 2025-05-22 14:14:42 +02:00