From 618e9dcda0a10eaaade42e550017318e195fa970 Mon Sep 17 00:00:00 2001 From: wenovus Date: Fri, 2 Feb 2024 14:36:00 -0800 Subject: [PATCH] case 2 --- pkg/server/server_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index d7641179f..69b90c4fa 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -456,9 +456,6 @@ func TestListPathEnableFiltered(test *testing.T) { }, func(d *api.Destination) { count++ for _, path := range d.Paths { - if path.Filtered { - continue - } var comms []uint32 for _, attr := range path.GetPattrs() { m, err := attr.UnmarshalNew() @@ -487,11 +484,11 @@ func TestListPathEnableFiltered(test *testing.T) { t.ListPath(context.Background(), &api.ListPathRequest{ TableType: api.TableType_ADJ_OUT, Family: family, Name: "127.0.0.1", - EnableFiltered: true, + EnableFiltered: false, }, func(d *api.Destination) { count++ for _, path := range d.Paths { - if !path.Filtered { + if path.Filtered { continue } var comms []uint32 @@ -560,7 +557,7 @@ func TestListPathEnableFiltered(test *testing.T) { }, func(d *api.Destination) { count++ for _, path := range d.Paths { - if !path.Filtered { + if path.Filtered { continue } var comms []uint32