Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: go/src/infra/appengine/test-results/frontend/get.go

Issue 2252623002: test-results: package model: Add type TestList (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@cl-ing_upload
Patch Set: Fix renamed function call Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | go/src/infra/appengine/test-results/model/aggregate_result.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/appengine/test-results/frontend/get.go
diff --git a/go/src/infra/appengine/test-results/frontend/get.go b/go/src/infra/appengine/test-results/frontend/get.go
index 6e0ed6ba694846c38142978a265c526376abee5a..79f11e6ea876848b4b65b1852983230db0ec1a82 100644
--- a/go/src/infra/appengine/test-results/frontend/get.go
+++ b/go/src/infra/appengine/test-results/frontend/get.go
@@ -221,9 +221,9 @@ func respondTestFileDefault(ctx *router.Context, params URLParams) {
logging.Errorf(c, "failed to unmarshal test results JSON: %+v: %v", data, err)
return
}
- aggr.Tests.ToTestList()
+ tl := aggr.ToTestList()
buf := &bytes.Buffer{}
- if err := json.NewEncoder(buf).Encode(aggr.Tests); err != nil {
+ if err := json.NewEncoder(buf).Encode(&tl); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
logging.Errorf(c, "failed to marshal test list JSON: %+v, %v", aggr.Tests, err)
return
« no previous file with comments | « no previous file | go/src/infra/appengine/test-results/model/aggregate_result.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698