itest: add a delay to allow interceptors to activate

This commit is contained in:
Jesse de Wit
2023-11-22 21:08:29 +01:00
parent 9242567cf1
commit 133eee7db9
8 changed files with 26 additions and 0 deletions

View File

@@ -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",