Skip to content

Commit

Permalink
delay before subscribing to notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jan 19, 2024
1 parent 4b2e45f commit 2fa4141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itest/notification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func testOfflineNotificationRegularForward(p *testParams) {
p.BreezClient().Node().ConnectPeer(p.lsp.LightningNode())
}()

<-time.After(time.Second * 2)
url := "http://" + addr + "/api/v1/notify"
SubscribeNotifications(p.lsp, p.BreezClient(), url, false)

<-time.After(time.Second * 2)
log.Printf("Adding bob's invoice")
amountMsat := uint64(2100000)
bobInvoice := p.BreezClient().Node().CreateBolt11Invoice(&lntest.CreateInvoiceOptions{
Expand Down

0 comments on commit 2fa4141

Please sign in to comment.