mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-16 13:00:19 +02:00
The test Config in createTestPeer left BestBlockView nil. When the PingManager's timer fires during a test, it calls BestBlockView.BestBlockHeader() which panics on the nil receiver. This was a flaky failure since it depended on a race between the timer and test completion. Add a trivial mockBestBlockView that returns an empty block header and wire it into the test Config. |
||
|---|---|---|
| .. | ||
| brontide.go | ||
| brontide_test.go | ||
| chan_observer.go | ||
| daemon_adapters.go | ||
| interfaces.go | ||
| log.go | ||
| musig_chan_closer.go | ||
| ping_manager.go | ||
| ping_manager_test.go | ||
| setup_test.go | ||
| test_utils.go | ||