mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
multi: create init result structs
This commit is contained in:
parent
68012f051a
commit
8b215edaa2
5 changed files with 35 additions and 12 deletions
|
|
@ -35,13 +35,14 @@ func TestLoopInSuccess(t *testing.T) {
|
|||
|
||||
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server)
|
||||
|
||||
swap, err := newLoopInSwap(
|
||||
initResult, err := newLoopInSwap(
|
||||
context.Background(), cfg,
|
||||
height, &testLoopInRequest,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
swap := initResult.swap
|
||||
|
||||
ctx.store.assertLoopInStored()
|
||||
|
||||
|
|
@ -159,13 +160,14 @@ func testLoopInTimeout(t *testing.T,
|
|||
req.ExternalHtlc = true
|
||||
}
|
||||
|
||||
s, err := newLoopInSwap(
|
||||
initResult, err := newLoopInSwap(
|
||||
context.Background(), cfg,
|
||||
height, &req,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
s := initResult.swap
|
||||
|
||||
ctx.store.assertLoopInStored()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue