From 634e23720ebb7c40586cca94046fbdb2004f5fbb Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 3 Apr 2018 21:12:16 +0200 Subject: [PATCH] breacharbiter_test: use RemoteUnilateralCloseSummary and LocalForceCloseSummary --- breacharbiter_test.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/breacharbiter_test.go b/breacharbiter_test.go index 5ac4efa6..a4e7ba0f 100644 --- a/breacharbiter_test.go +++ b/breacharbiter_test.go @@ -951,11 +951,12 @@ func TestBreachHandoffSuccess(t *testing.T) { // Instantiate a breach arbiter to handle the breach of alice's channel. alicePoint := alice.ChannelPoint() spendEvents := contractcourt.ChainEventSubscription{ - UnilateralClosure: make(chan *lnwallet.UnilateralCloseSummary, 1), - CooperativeClosure: make(chan struct{}, 1), - ContractBreach: make(chan *lnwallet.BreachRetribution, 1), - ProcessACK: make(chan error, 1), - ChanPoint: *alicePoint, + RemoteUnilateralClosure: make(chan *lnwallet.UnilateralCloseSummary, 1), + LocalUnilateralClosure: make(chan *contractcourt.LocalUnilateralCloseInfo, 1), + CooperativeClosure: make(chan struct{}, 1), + ContractBreach: make(chan *lnwallet.BreachRetribution, 1), + ProcessACK: make(chan error, 1), + ChanPoint: *alicePoint, Cancel: func() { }, } @@ -1039,11 +1040,12 @@ func TestBreachHandoffFail(t *testing.T) { // Instantiate a breach arbiter to handle the breach of alice's channel. alicePoint := alice.ChannelPoint() spendEvents := contractcourt.ChainEventSubscription{ - UnilateralClosure: make(chan *lnwallet.UnilateralCloseSummary, 1), - CooperativeClosure: make(chan struct{}, 1), - ContractBreach: make(chan *lnwallet.BreachRetribution, 1), - ProcessACK: make(chan error, 1), - ChanPoint: *alicePoint, + RemoteUnilateralClosure: make(chan *lnwallet.UnilateralCloseSummary, 1), + LocalUnilateralClosure: make(chan *contractcourt.LocalUnilateralCloseInfo, 1), + CooperativeClosure: make(chan struct{}, 1), + ContractBreach: make(chan *lnwallet.BreachRetribution, 1), + ProcessACK: make(chan error, 1), + ChanPoint: *alicePoint, Cancel: func() { }, }