contractcourt: update tests to use new IncubateOutputs API

This commit is contained in:
Olaoluwa Osuntokun 2018-09-25 21:48:24 -07:00
parent 68774e3ae4
commit 16ec80e163
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -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{}{}