From ff3e43fcd2ae389373e103bf59f0f91567a717c7 Mon Sep 17 00:00:00 2001 From: Lionel Jouin Date: Mon, 14 Mar 2022 15:45:46 +0100 Subject: [PATCH] Fix policy route tests Signed-off-by: Lionel Jouin --- pkg/networkservice/common/policyroute/server_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/networkservice/common/policyroute/server_test.go b/pkg/networkservice/common/policyroute/server_test.go index a30fff66d5..4f11301fdc 100644 --- a/pkg/networkservice/common/policyroute/server_test.go +++ b/pkg/networkservice/common/policyroute/server_test.go @@ -90,12 +90,12 @@ func TestCheckReloadedPolicies(t *testing.T) { defer cancel() // Create policies policies := []*networkservice.PolicyRoute{ - {From: "172.16.2.201/24", Proto: 6, Port: 6666, Routes: []*networkservice.Route{{ + {From: "172.16.2.201/24", Proto: "6", DstPort: "6666", Routes: []*networkservice.Route{{ Prefix: "172.16.3.0/24", NextHop: "172.16.2.200", }}}, - {Proto: 17, Port: 6666}, - {Proto: 17, Port: 5555, Routes: []*networkservice.Route{{ + {Proto: "17", DstPort: "6666"}, + {Proto: "17", DstPort: "5555", Routes: []*networkservice.Route{{ Prefix: "2004::5/120", NextHop: "2004::6", }}},