diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2017-01-12 07:19:39 +0000 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2017-01-13 00:46:54 -0500 |
commit | f591da3beb7e98e59764f40187be4112ec47adfb (patch) | |
tree | caa4c5b656baa8f3c9512e4528a3fe5b616b1598 /client | |
parent | 9079b26987aaf8bd13c6e4cd008b4affadc8af55 (diff) |
client: fix client_test
before creating new client, we need to ensure GrpcServer is up.
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'client')
-rw-r--r-- | client/client_test.go | 3 |
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, |