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

Unified Diff: service/datastore/properties_test.go

Issue 1270113002: Re-add metadata passthrough on Get operations (Closed) Base URL: https://github.com/luci/gae.git@fix_other_interfaces
Patch Set: safer, add tests Created 5 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
Index: service/datastore/properties_test.go
diff --git a/service/datastore/properties_test.go b/service/datastore/properties_test.go
index 98691fe83676cb2e8790d3c6ecdcbdf9a3a41ef7..e5bb1798bdfb205d4336f859a8828a35f1691db9 100644
--- a/service/datastore/properties_test.go
+++ b/service/datastore/properties_test.go
@@ -155,6 +155,8 @@ func TestDSPropertyMapImpl(t *testing.T) {
v, err := pm.GetMeta("foo")
So(err, ShouldBeNil)
So(v, ShouldEqual, 100)
+ So(pm.GetMetaDefault("foo", 100), ShouldEqual, 100)
+ So(pm.GetMetaDefault("bar", 100), ShouldEqual, 100)
npm, err := pm.Save(false)
So(err, ShouldBeNil)

Powered by Google App Engine
This is Rietveld 408576698