contractcourt: update tests to use new IncubateOutputs API
This commit is contained in:
parent
68774e3ae4
commit
16ec80e163
@ -172,7 +172,7 @@ func createTestChannelArbitrator(log ArbitratorLog) (*ChannelArbitrator,
|
|||||||
},
|
},
|
||||||
IncubateOutputs: func(wire.OutPoint, *lnwallet.CommitOutputResolution,
|
IncubateOutputs: func(wire.OutPoint, *lnwallet.CommitOutputResolution,
|
||||||
*lnwallet.OutgoingHtlcResolution,
|
*lnwallet.OutgoingHtlcResolution,
|
||||||
*lnwallet.IncomingHtlcResolution) error {
|
*lnwallet.IncomingHtlcResolution, uint32) error {
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -463,10 +463,10 @@ func TestChannelArbitratorLocalForceClosePendingHtlc(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
incubateChan := make(chan struct{})
|
incubateChan := make(chan struct{})
|
||||||
chanArb.cfg.IncubateOutputs = func(outPoint wire.OutPoint,
|
chanArb.cfg.IncubateOutputs = func(_ wire.OutPoint,
|
||||||
commitOutputRes *lnwallet.CommitOutputResolution,
|
_ *lnwallet.CommitOutputResolution,
|
||||||
outgoingHtlcRes *lnwallet.OutgoingHtlcResolution,
|
_ *lnwallet.OutgoingHtlcResolution,
|
||||||
incomingHtlcRes *lnwallet.IncomingHtlcResolution) error {
|
_ *lnwallet.IncomingHtlcResolution, _ uint32) error {
|
||||||
|
|
||||||
incubateChan <- struct{}{}
|
incubateChan <- struct{}{}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user