mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopout: cancel swap with server when off-chain fails
This commit is contained in:
parent
6b732bacee
commit
f166ce899d
4 changed files with 264 additions and 2 deletions
|
|
@ -100,6 +100,7 @@ func TestFailOffchain(t *testing.T) {
|
|||
signalPrepaymentResult(
|
||||
errors.New(lndclient.PaymentResultUnknownPaymentHash),
|
||||
)
|
||||
<-ctx.serverMock.cancelSwap
|
||||
ctx.assertStatus(loopdb.StateFailOffchainPayments)
|
||||
|
||||
ctx.assertStoreFinished(loopdb.StateFailOffchainPayments)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue