From 8df79bebb4be83199bd051691f73eb455b0f101e Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Thu, 14 Jun 2018 11:40:47 +0900 Subject: [PATCH] UT: Remove redundant debug print Signed-off-by: IWASE Yusuke --- gobgp/cmd/common_test.go | 5 ++--- gobgp/cmd/global_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gobgp/cmd/common_test.go b/gobgp/cmd/common_test.go index c8d351f3..d7bb87b2 100644 --- a/gobgp/cmd/common_test.go +++ b/gobgp/cmd/common_test.go @@ -16,10 +16,10 @@ package cmd import ( - "fmt" - "github.com/stretchr/testify/assert" "strings" "testing" + + "github.com/stretchr/testify/assert" ) func Test_ExtractReserved(t *testing.T) { @@ -32,7 +32,6 @@ func Test_ExtractReserved(t *testing.T) { "aigp": PARAM_LIST, "local-pref": PARAM_SINGLE} m, _ := extractReserved(args, keys) - fmt.Println(m) assert.True(len(m["rt"]) == 1) assert.True(len(m["med"]) == 1) assert.True(len(m["nexthop"]) == 1) diff --git a/gobgp/cmd/global_test.go b/gobgp/cmd/global_test.go index c4115587..15c633a2 100644 --- a/gobgp/cmd/global_test.go +++ b/gobgp/cmd/global_test.go @@ -16,11 +16,12 @@ package cmd import ( - "fmt" - "github.com/osrg/gobgp/packet/bgp" - "github.com/stretchr/testify/assert" "strings" "testing" + + "github.com/stretchr/testify/assert" + + "github.com/osrg/gobgp/packet/bgp" ) func Test_ParsePath(t *testing.T) { @@ -29,7 +30,6 @@ func Test_ParsePath(t *testing.T) { path, err := ParsePath(bgp.RF_IPv4_UC, strings.Split(buf, " ")) assert.Nil(err) - fmt.Println(path) i := 0 for _, a := range path.GetPathAttrs() { assert.True(i < int(a.GetType()))