summaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/client_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/client_test.go b/client/client_test.go
index 3f07a6ad..6bcf73b2 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -17,6 +17,7 @@ package client
import (
"testing"
+ "time"
api "github.com/osrg/gobgp/api"
"github.com/osrg/gobgp/config"
@@ -30,7 +31,9 @@ func TestGetNeighbor(test *testing.T) {
go s.Serve()
g := api.NewGrpcServer(s, ":50051")
go g.Serve()
+ time.Sleep(time.Second)
cli, err := New("")
+ assert.Nil(err)
err = cli.StartServer(&config.Global{
Config: config.GlobalConfig{
As: 1,