From 53fef5426fa21df0f3982831f8ab6bb44d4d6466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Martins?= Date: Fri, 31 Mar 2023 17:26:41 +0200 Subject: [PATCH] Revert "datapath/linux/route: fix CI expectations for rule string format" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit cbf09e724fd566d43bcfba3f89467e7e388dc003. Signed-off-by: André Martins --- pkg/datapath/linux/route/route_linux_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/datapath/linux/route/route_linux_test.go b/pkg/datapath/linux/route/route_linux_test.go index c46fe65477e9b..13fb17d7202d4 100644 --- a/pkg/datapath/linux/route/route_linux_test.go +++ b/pkg/datapath/linux/route/route_linux_test.go @@ -185,21 +185,21 @@ func (p *RouteSuitePrivileged) TestRule_String(c *C) { From: fakeIP, To: fakeIP2, }, - wantStr: "0: from 10.10.10.10/32 to 1.1.1.1/32 lookup 0 proto unspec", + wantStr: "0: from 10.10.10.10/32 to 1.1.1.1/32 lookup 0", }, { name: "contains priority", rule: Rule{ Priority: 1, }, - wantStr: "1: from all to all lookup 0 proto unspec", + wantStr: "1: from all to all lookup 0", }, { name: "contains table", rule: Rule{ Table: 1, }, - wantStr: "0: from all to all lookup 1 proto unspec", + wantStr: "0: from all to all lookup 1", }, { name: "contains mark and mask", @@ -207,14 +207,14 @@ func (p *RouteSuitePrivileged) TestRule_String(c *C) { Mark: 1, Mask: 1, }, - wantStr: "0: from all to all lookup 0 mark 0x1 mask 0x1 proto unspec", + wantStr: "0: from all to all lookup 0 mark 0x1 mask 0x1", }, { name: "main table", rule: Rule{ Table: unix.RT_TABLE_MAIN, }, - wantStr: "0: from all to all lookup main proto unspec", + wantStr: "0: from all to all lookup main", }, } for _, tt := range tests {