add integration tests for LND lsp CLN client

This commit is contained in:
Jesse de Wit
2023-10-16 22:21:43 +02:00
parent 4640507c5f
commit c25a6e1a85
9 changed files with 79 additions and 10 deletions

View File

@@ -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)
}