summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/server_test.go
diff options
context:
space:
mode:
authorJieJhih Jhang <aawer12345tw@yahoo.com.tw>2019-03-25 23:59:56 +0800
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-03-26 07:44:02 +0900
commitfb1e303870f60fe27298e0fa5f6615ab1dbbcafd (patch)
treebd56a4cd456b1e60ee793073aad92b4d67fbc790 /pkg/server/server_test.go
parent275966f6cff4525532042e2cc342ea25f8dd033a (diff)
fix same issues in other files
Diffstat (limited to 'pkg/server/server_test.go')
-rw-r--r--pkg/server/server_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go
index f325f3ad..20d90edb 100644
--- a/pkg/server/server_test.go
+++ b/pkg/server/server_test.go
@@ -20,6 +20,7 @@ import (
"fmt"
"net"
"runtime"
+ "strconv"
"testing"
"time"
@@ -161,7 +162,7 @@ func TestListPolicyAssignment(t *testing.T) {
defer s.StopBgp(context.Background(), &api.StopBgpRequest{})
for i := 1; i < 4; i++ {
- addr := fmt.Sprintf("127.0.0.%d", i)
+ addr := "127.0.0." + strconv.Itoa(i)
p := &api.Peer{
Conf: &api.PeerConf{
NeighborAddress: addr,