diff --git a/htlcswitch/mock.go b/htlcswitch/mock.go index 3c336ef2..f17029e0 100644 --- a/htlcswitch/mock.go +++ b/htlcswitch/mock.go @@ -6,6 +6,7 @@ import ( "fmt" "sync" "testing" + "time" "io" "sync/atomic" @@ -617,3 +618,14 @@ func (m *mockNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint) (*chainntnfs.S Spend: make(chan *chainntnfs.SpendDetail), }, nil } + +type mockTicker struct { + ticker <-chan time.Time +} + +func (m *mockTicker) Start() <-chan time.Time { + return m.ticker +} + +func (m *mockTicker) Stop() { +}