Skip to content

Commit 0f0b9a5

Browse files
authored
Fix test from #1938 and #1904 (#1956)
1 parent 55a9b44 commit 0f0b9a5

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

github/code-scanning_test.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,13 @@ func TestAlert_Marshal(t *testing.T) {
214214
RuleID: String("rid"),
215215
RuleSeverity: String("rs"),
216216
RuleDescription: String("rd"),
217-
Tool: String("t"),
218-
CreatedAt: &Timestamp{referenceTime},
219-
Open: Bool(false),
217+
Tool: &Tool{
218+
Name: String("n"),
219+
GUID: String("g"),
220+
Version: String("v"),
221+
},
222+
CreatedAt: &Timestamp{referenceTime},
223+
Open: Bool(false),
220224
ClosedBy: &User{
221225
Login: String("l"),
222226
ID: Int64(1),
@@ -235,7 +239,11 @@ func TestAlert_Marshal(t *testing.T) {
235239
"rule_id": "rid",
236240
"rule_severity": "rs",
237241
"rule_description": "rd",
238-
"tool": "t",
242+
"tool": {
243+
"name": "n",
244+
"guid": "g",
245+
"version": "v"
246+
},
239247
"created_at": ` + referenceTimeStr + `,
240248
"open": false,
241249
"closed_by": {

0 commit comments

Comments
 (0)