summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/server_test.go
diff options
context:
space:
mode:
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,