From 16ec80e163a7146a1c233b407bf53f22e40c1391 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 25 Sep 2018 21:48:24 -0700 Subject: [PATCH] contractcourt: update tests to use new IncubateOutputs API --- contractcourt/channel_arbitrator_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contractcourt/channel_arbitrator_test.go b/contractcourt/channel_arbitrator_test.go index 8abfb35a..8def9805 100644 --- a/contractcourt/channel_arbitrator_test.go +++ b/contractcourt/channel_arbitrator_test.go @@ -172,7 +172,7 @@ func createTestChannelArbitrator(log ArbitratorLog) (*ChannelArbitrator, }, IncubateOutputs: func(wire.OutPoint, *lnwallet.CommitOutputResolution, *lnwallet.OutgoingHtlcResolution, - *lnwallet.IncomingHtlcResolution) error { + *lnwallet.IncomingHtlcResolution, uint32) error { return nil }, } @@ -463,10 +463,10 @@ func TestChannelArbitratorLocalForceClosePendingHtlc(t *testing.T) { } incubateChan := make(chan struct{}) - chanArb.cfg.IncubateOutputs = func(outPoint wire.OutPoint, - commitOutputRes *lnwallet.CommitOutputResolution, - outgoingHtlcRes *lnwallet.OutgoingHtlcResolution, - incomingHtlcRes *lnwallet.IncomingHtlcResolution) error { + chanArb.cfg.IncubateOutputs = func(_ wire.OutPoint, + _ *lnwallet.CommitOutputResolution, + _ *lnwallet.OutgoingHtlcResolution, + _ *lnwallet.IncomingHtlcResolution, _ uint32) error { incubateChan <- struct{}{}