From 3b9d2b55c1947e93814ff87d3cf3b473d366cd4e Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 24 Jan 2023 14:26:10 +0100 Subject: dashboard: include report elements in the BugReport This will help optimize the detection and addition of missing fields to the existing reports. --- dashboard/app/reporting_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dashboard/app/reporting_test.go') diff --git a/dashboard/app/reporting_test.go b/dashboard/app/reporting_test.go index 0768d9105..a594e8356 100644 --- a/dashboard/app/reporting_test.go +++ b/dashboard/app/reporting_test.go @@ -84,6 +84,7 @@ func TestReportBug(t *testing.T) { NumCrashes: 1, HappenedOn: []string{"repo1 branch1"}, Assets: []dashapi.Asset{}, + ReportElements: &dashapi.ReportElements{}, } c.expectEQ(want, rep) @@ -247,6 +248,7 @@ func TestInvalidBug(t *testing.T) { NumCrashes: 1, HappenedOn: []string{"repo1 branch1"}, Assets: []dashapi.Asset{}, + ReportElements: &dashapi.ReportElements{}, } c.expectEQ(want, rep) c.client.ReportFailedRepro(testCrashID(crash1)) -- cgit mrf-deployment