diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2026-01-15 16:01:13 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2026-01-15 16:07:29 +0000 |
| commit | 722ac325be10a199c90c32e8045030ca81d3e496 (patch) | |
| tree | 2d2c6ca32254ec6bde278aa9d6a300f16a3de6be /dashboard/app/reporting_test.go | |
| parent | 5757a3d287e4b35ca77da40c5dab0a29506261cd (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.go | 12 |
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, "") + } } |
