summaryrefslogtreecommitdiffhomepage
path: root/server/rpki_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/rpki_test.go')
-rw-r--r--server/rpki_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/rpki_test.go b/server/rpki_test.go
index 34b9a237..694883e7 100644
--- a/server/rpki_test.go
+++ b/server/rpki_test.go
@@ -21,11 +21,13 @@ import (
"strings"
"testing"
- "github.com/armon/go-radix"
+ "github.com/stretchr/testify/assert"
+
+ radix "github.com/armon/go-radix"
+
"github.com/osrg/gobgp/config"
"github.com/osrg/gobgp/packet/bgp"
"github.com/osrg/gobgp/table"
- "github.com/stretchr/testify/assert"
)
func strToASParam(str string) *bgp.PathAttributeAsPath {
@@ -56,7 +58,7 @@ func strToASParam(str string) *bgp.PathAttributeAsPath {
func validateOne(tree *radix.Tree, cidr, aspathStr string) config.RpkiValidationResultType {
r, _ := ValidatePath(65500, tree, cidr, strToASParam(aspathStr))
- return r
+ return r.Status
}
func TestValidate0(t *testing.T) {