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

Unified Diff: service/datastore/properties_test.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: WithoutTransaction, comments, fixes, cleanup. Created 4 years, 3 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 42d092fd25586111c1babb6d07fe6790cc4a8720..e294d20a212bac1b03085da6241d22f59740a1bf 100644
--- a/service/datastore/properties_test.go
+++ b/service/datastore/properties_test.go
@@ -91,7 +91,7 @@ func TestProperties(t *testing.T) {
So(pv.Type().String(), ShouldEqual, "PTBlobKey")
})
Convey("datastore Key is distinguished", func() {
- k := MakeKey("appid", "ns", "kind", "1")
+ k := KeyContext{"appid", "ns"}.MakeKey("kind", "1")
pv := MkProperty(k)
So(pv.Value(), ShouldHaveSameTypeAs, k)
So(pv.Value().(*Key).Equal(k), ShouldBeTrue)

Powered by Google App Engine
This is Rietveld 408576698