diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-06-14 11:40:47 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-14 22:14:53 +0900 |
commit | 8df79bebb4be83199bd051691f73eb455b0f101e (patch) | |
tree | 32032ce4541d537f3b6718fa158bc6bcce300fb8 | |
parent | 5fbd0cb24324f1569377ce5c627bb2db97b76ce7 (diff) |
UT: Remove redundant debug print
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-rw-r--r-- | gobgp/cmd/common_test.go | 5 | ||||
-rw-r--r-- | 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())) |