mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-24 01:04:21 +01:00
add integration tests for LND lsp CLN client
This commit is contained in:
@@ -61,4 +61,10 @@ func testZeroReserve(p *testParams) {
|
||||
assert.Equal(p.t, c.RemoteReserveMsat, c.CapacityMsat/100)
|
||||
log.Printf("local reserve: %d, remote reserve: %d", c.LocalReserveMsat, c.RemoteReserveMsat)
|
||||
assert.Zero(p.t, c.LocalReserveMsat)
|
||||
|
||||
lspInvoice := p.lsp.LightningNode().CreateBolt11Invoice(&lntest.CreateInvoiceOptions{
|
||||
AmountMsat: innerAmountMsat - 1,
|
||||
})
|
||||
<-time.After(time.Second * 1)
|
||||
p.BreezClient().Node().Pay(lspInvoice.Bolt11)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user