mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-24 01:04:21 +01:00
itest: add a delay to allow interceptors to activate
This commit is contained in:
@@ -3,6 +3,7 @@ package itest
|
||||
import (
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/breez/lntest"
|
||||
"github.com/breez/lspd/lsps0"
|
||||
@@ -12,6 +13,9 @@ import (
|
||||
func testLsps0GetProtocolVersions(p *testParams) {
|
||||
p.BreezClient().Node().ConnectPeer(p.Lsp().LightningNode())
|
||||
|
||||
// Make sure everything is activated.
|
||||
<-time.After(htlcInterceptorDelay)
|
||||
|
||||
rawMsg := `{
|
||||
"method": "lsps0.list_protocols",
|
||||
"jsonrpc": "2.0",
|
||||
|
||||
Reference in New Issue
Block a user