multi: add cancel swap function to execute config

This commit is contained in:
carla 2021-05-24 08:40:14 +02:00
parent 4040bb356d
commit 16111352a8
No known key found for this signature in database
GPG key ID: 4CA7FE54A6213C91
6 changed files with 11 additions and 0 deletions

View file

@ -73,6 +73,7 @@ func TestLoopOutPaymentParameters(t *testing.T) {
blockEpochChan: blockEpochChan,
timerFactory: timerFactory,
loopOutMaxParts: maxParts,
cancelSwap: server.CancelLoopOutSwap,
}, height)
if err != nil {
log.Error(err)
@ -173,6 +174,7 @@ func TestLateHtlcPublish(t *testing.T) {
sweeper: sweeper,
blockEpochChan: blockEpochChan,
timerFactory: timerFactory,
cancelSwap: server.CancelLoopOutSwap,
}, height)
if err != nil {
log.Error(err)
@ -267,6 +269,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
blockEpochChan: blockEpochChan,
timerFactory: timerFactory,
sweeper: sweeper,
cancelSwap: server.CancelLoopOutSwap,
}, ctx.Lnd.Height)
if err != nil {
log.Error(err)
@ -461,6 +464,7 @@ func TestPreimagePush(t *testing.T) {
blockEpochChan: blockEpochChan,
timerFactory: timerFactory,
sweeper: sweeper,
cancelSwap: server.CancelLoopOutSwap,
}, ctx.Lnd.Height)
if err != nil {
log.Error(err)