mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 14:12:27 +02:00
htlcswitch: init mockFeeEstimator in other LinkChannelConfigs
If the tests don't execute quick enough, the link will try to sample the network fee and cause a panic. This happens semi-regularly on travis.
This commit is contained in:
@ -1967,6 +1967,7 @@ func newSingleLinkTestHarness(chanAmt, chanReserve btcutil.Amount) (
|
||||
return nil
|
||||
},
|
||||
Registry: invoiceRegistry,
|
||||
FeeEstimator: newMockFeeEstimator(),
|
||||
ChainEvents: &contractcourt.ChainEventSubscription{},
|
||||
BatchTicker: bticker,
|
||||
FwdPkgGCTicker: ticker.NewForce(15 * time.Second),
|
||||
@ -4469,6 +4470,7 @@ func (h *persistentLinkHarness) restartLink(
|
||||
return nil
|
||||
},
|
||||
Registry: h.coreLink.cfg.Registry,
|
||||
FeeEstimator: newMockFeeEstimator(),
|
||||
ChainEvents: &contractcourt.ChainEventSubscription{},
|
||||
BatchTicker: bticker,
|
||||
FwdPkgGCTicker: ticker.New(5 * time.Second),
|
||||
|
Reference in New Issue
Block a user