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

Unified Diff: appengine/tsmon/middleware_test.go

Issue 2123853002: Added unit annotation supports onto tsmon in go. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Created 4 years, 5 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
Index: appengine/tsmon/middleware_test.go
diff --git a/appengine/tsmon/middleware_test.go b/appengine/tsmon/middleware_test.go
index 6fe295ea4f633de6d95b014017fc3f624ad4dc73..d88b74318634c54ca2d1742667aa47c52b22f7b7 100644
--- a/appengine/tsmon/middleware_test.go
+++ b/appengine/tsmon/middleware_test.go
@@ -25,7 +25,9 @@ import (
func TestMiddleware(t *testing.T) {
t.Parallel()
- metric := &storetest.FakeMetric{"m", "", []field.Field{}, types.CumulativeIntType}
+ metric := &storetest.FakeMetric{
+ types.MetricInfo{"m", "", []field.Field{}, types.CumulativeIntType},
+ types.MetricMetadata{}}
f := func(c *router.Context) {
So(store.IsNilStore(tsmon.Store(c.Context)), ShouldBeFalse)

Powered by Google App Engine
This is Rietveld 408576698