Skip to content

Commit

Permalink
contractcourt: update tests to use new IncubateOutputs API
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Sep 26, 2018
1 parent 68774e3 commit 16ec80e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contractcourt/channel_arbitrator_test.go
Expand Up @@ -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
},
}
Expand Down Expand Up @@ -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{}{}

Expand Down

0 comments on commit 16ec80e

Please sign in to comment.