mirror of
https://github.com/reactos/syzkaller-ros.git
synced 2025-02-17 10:18:48 +00:00
dashboard/app: fix report_failed_repro api call
We are seeing the following errors in this handler: cross-group transaction need to be explicitly specified, see TransactionOptions.Builder.withXG
This commit is contained in:
parent
08a7078aab
commit
d23bf3250e
@ -499,7 +499,7 @@ func apiReportFailedRepro(c context.Context, ns string, r *http.Request) (interf
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if err := datastore.RunInTransaction(c, tx, nil); err != nil {
|
||||
if err := datastore.RunInTransaction(c, tx, &datastore.TransactionOptions{XG: true}); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nil, nil
|
||||
|
@ -191,6 +191,13 @@ func TestInvalidBug(t *testing.T) {
|
||||
ReproC: []byte("int main() { return 1; }"),
|
||||
}
|
||||
c.expectEQ(rep, want)
|
||||
|
||||
repro := &dashapi.FailedRepro{
|
||||
Manager: build.Manager,
|
||||
BuildID: build.ID,
|
||||
Title: crash1.Title,
|
||||
}
|
||||
c.expectOK(c.API(client1, key1, "report_failed_repro", repro, nil))
|
||||
}
|
||||
|
||||
func TestReportingQuota(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user