mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-18 22:34:22 +01:00
itest: add a small delay before connecting grpc
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"path/filepath"
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/breez/lntest"
|
||||
"github.com/breez/lspd/config"
|
||||
@@ -157,6 +158,7 @@ func (c *ClnLspNode) Start() {
|
||||
},
|
||||
})
|
||||
|
||||
<-time.After(time.Second)
|
||||
conn, err := grpc.Dial(
|
||||
c.lspBase.grpcAddress,
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/breez/lntest"
|
||||
"github.com/breez/lspd/config"
|
||||
@@ -180,6 +181,7 @@ func (c *LndLspNode) Start() {
|
||||
},
|
||||
})
|
||||
|
||||
<-time.After(time.Second)
|
||||
conn, err := grpc.Dial(
|
||||
c.lspBase.grpcAddress,
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
|
||||
Reference in New Issue
Block a user