mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
UT: Remove redundant debug print
Signed-off-by: IWASE Yusuke <[email protected]>
This commit is contained in:
committed by
FUJITA Tomonori
parent
5fbd0cb243
commit
8df79bebb4
@@ -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)
|
||||
|
||||
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user