summaryrefslogtreecommitdiffhomepage
path: root/client/client_test.go
diff options
context:
space:
mode:
authorChris Stockton <cstockton@godaddy.com>2016-12-05 01:21:31 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-12-05 01:21:31 -0800
commit7eadc1c1c970fb5ada05cd9209f57a7cb6a3b475 (patch)
treea3ff1d5f1d35728c89b1cb667b7e1cd469a7feb6 /client/client_test.go
parentc19a4c503c1c575abe0ffc2cc5acb8da311ad04f (diff)
client: Allow creating a GoBGPClient using a user specific GRPC connection and client
This allows wrapping the dialer, implementing your own wrapped GobgpApiClient or dialing with a context for cancelation on unreliable endpoints.
Diffstat (limited to 'client/client_test.go')
-rw-r--r--client/client_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client_test.go b/client/client_test.go
index 9825f91b..3f07a6ad 100644
--- a/client/client_test.go
+++ b/client/client_test.go
@@ -30,7 +30,7 @@ func TestGetNeighbor(test *testing.T) {
go s.Serve()
g := api.NewGrpcServer(s, ":50051")
go g.Serve()
- cli, err := NewGoBGPClient("")
+ cli, err := New("")
err = cli.StartServer(&config.Global{
Config: config.GlobalConfig{
As: 1,