UT: Remove redundant debug print

Signed-off-by: IWASE Yusuke <[email protected]>
This commit is contained in:
IWASE Yusuke
2018-06-14 22:14:53 +09:00
committed by FUJITA Tomonori
parent 5fbd0cb243
commit 8df79bebb4
2 changed files with 6 additions and 7 deletions
+2 -3
View File
@@ -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)
+4 -4
View File
@@ -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()))