From 7a9ccae73906bb641dd8f22b9325941b403f0700 Mon Sep 17 00:00:00 2001 From: Syed Parvez Date: Sat, 23 Mar 2024 17:44:55 +0530 Subject: [PATCH] updated server_test.go --- pkg/rpc/server/server_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/rpc/server/server_test.go b/pkg/rpc/server/server_test.go index 3022ff2cdf0a..c966c625122c 100644 --- a/pkg/rpc/server/server_test.go +++ b/pkg/rpc/server/server_test.go @@ -81,6 +81,12 @@ func TestScanServer_Scan(t *testing.T) { LastModifiedDate: utils.MustTimeParse("2020-01-01T01:01:00Z"), PublishedDate: utils.MustTimeParse("2001-01-01T01:01:00Z"), }, + Locations: []ftypes.Location{ + { + StartLine: 33, + EndLine: 38, + }, + }, PrimaryURL: "https://avd.aquasec.com/nvd/cve-2019-0001", DataSource: &dbTypes.DataSource{ Name: "DOS vulnerabilities", @@ -127,6 +133,14 @@ func TestScanServer_Scan(t *testing.T) { LastModifiedDate: ×tamp.Timestamp{ Seconds: 1577840460, }, + Locations: &common.Locations{ + Location: []*common.Location{ + { + StartLine: 33, + EndLine: 38, + }, + }, + }, PublishedDate: ×tamp.Timestamp{ Seconds: 978310860, },