summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-14 22:38:16 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-14 22:38:16 +0900
commit42cc25da7ae4a9114ffb5031e4071a307f7b8465 (patch)
tree3424420a2593867816d892433dcd759e589a7bd3 /cmd
parent9c591a9f32d6cc0dd3230c82f720e8167ca0f7c9 (diff)
cmd/gobgp: use different grpc port for rpki_test
Sometimes fails due to listen port conflict with tests in internal/pkg/client. Using unix domain socket migth be a proper fix. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/cmd/rpki_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gobgp/cmd/rpki_test.go b/cmd/gobgp/cmd/rpki_test.go
index af4a9cd1..432d0bbc 100644
--- a/cmd/gobgp/cmd/rpki_test.go
+++ b/cmd/gobgp/cmd/rpki_test.go
@@ -30,7 +30,7 @@ func TestShowRPKITable(test *testing.T) {
s := server.NewBgpServer()
go s.Serve()
- g := server.NewGrpcServer(s, ":50051")
+ g := server.NewGrpcServer(s, ":50052")
go g.Serve()
err := s.Start(&config.Global{
@@ -53,7 +53,7 @@ func TestShowRPKITable(test *testing.T) {
assert.Nil(err)
globalOpts.Host = "127.0.0.1"
- globalOpts.Port = 50051
+ globalOpts.Port = 50052
client = newClient()
defer client.Close()