aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-01-24 14:26:10 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-01-26 11:08:32 +0100
commit3b9d2b55c1947e93814ff87d3cf3b473d366cd4e (patch)
tree3e6388d4a84c877b5cd6d94e392b7303730cf2e8 /dashboard/app/reporting_test.go
parent651c142ca435e5f5dea7be48ac988b5c13d850d9 (diff)
dashboard: include report elements in the BugReport
This will help optimize the detection and addition of missing fields to the existing reports.
Diffstat (limited to 'dashboard/app/reporting_test.go')
-rw-r--r--dashboard/app/reporting_test.go2
1 files changed, 2 insertions, 0 deletions
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))