From 8cc46812019abeb67619de8845b9f3225755df81 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 31 Jul 2018 21:01:45 -0700 Subject: [PATCH] test_utils: init switch with default fwd/log tickers --- test_utils.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_utils.go b/test_utils.go index 0de7f0f80..34aef8b97 100644 --- a/test_utils.go +++ b/test_utils.go @@ -22,6 +22,7 @@ import ( "github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/shachain" + "github.com/lightningnetwork/lnd/ticker" ) var ( @@ -351,6 +352,10 @@ func createTestPeer(notifier chainntnfs.ChainNotifier, DB: dbAlice, SwitchPackager: channeldb.NewSwitchPackager(), Notifier: notifier, + FwdEventTicker: ticker.New( + htlcswitch.DefaultFwdEventInterval), + LogEventTicker: ticker.New( + htlcswitch.DefaultLogInterval), }, uint32(currentHeight)) if err != nil { return nil, nil, nil, nil, err