Skip to content

Commit

Permalink
itest: add a small delay before connecting grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Mar 7, 2024
1 parent b91ab0b commit 9d809da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions itest/cln_lspd_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"path/filepath"
"sync"
"syscall"
"time"

"github.com/breez/lntest"
"github.com/breez/lspd/config"
Expand Down Expand Up @@ -157,6 +158,7 @@ func (c *ClnLspNode) Start() {
},
})

<-time.After(time.Second)
conn, err := grpc.Dial(
c.lspBase.grpcAddress,
grpc.WithTransportCredentials(insecure.NewCredentials()),
Expand Down
2 changes: 2 additions & 0 deletions itest/lnd_lspd_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strings"
"sync"
"syscall"
"time"

"github.com/breez/lntest"
"github.com/breez/lspd/config"
Expand Down Expand Up @@ -180,6 +181,7 @@ func (c *LndLspNode) Start() {
},
})

<-time.After(time.Second)
conn, err := grpc.Dial(
c.lspBase.grpcAddress,
grpc.WithTransportCredentials(insecure.NewCredentials()),
Expand Down

0 comments on commit 9d809da

Please sign in to comment.