aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2026-01-15 16:01:13 +0100
committerAleksandr Nogikh <nogikh@google.com>2026-01-15 16:07:29 +0000
commit722ac325be10a199c90c32e8045030ca81d3e496 (patch)
tree2d2c6ca32254ec6bde278aa9d6a300f16a3de6be /dashboard/app/reporting_test.go
parent5757a3d287e4b35ca77da40c5dab0a29506261cd (diff)
dashboard: fix manuallyUpstreamed
The function returned incorrect result when the reporting stage of interest was completely skipped and never reported.
Diffstat (limited to 'dashboard/app/reporting_test.go')
-rw-r--r--dashboard/app/reporting_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/dashboard/app/reporting_test.go b/dashboard/app/reporting_test.go
index 640eac30f..6f4441583 100644
--- a/dashboard/app/reporting_test.go
+++ b/dashboard/app/reporting_test.go
@@ -1466,4 +1466,16 @@ func TestSkipStage(t *testing.T) {
client.pollNotifs(0)
client.pollBugs(0)
}
+
+ {
+ // Don't react to skipped reporting stages.
+ crash := testCrash(build, 4)
+ crash.Title = "skip reporting1"
+ client.ReportCrash(crash)
+ rep := client.pollBug()
+ c.expectEQ(string(rep.Config), `{"Index":2}`)
+ // If we do react, there would be an upstreaming notification.
+ client.pollNotifs(0)
+ c.client.updateBug(rep.ID, dashapi.BugStatusInvalid, "")
+ }
}