summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gobgp/cmd/common_test.go5
-rw-r--r--gobgp/cmd/global_test.go8
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()))