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

Unified Diff: service/datastore/checkfilter_test.go

Issue 2302743002: Interface update, per-method Contexts. (Closed)
Patch Set: 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
Index: service/datastore/checkfilter_test.go
diff --git a/service/datastore/checkfilter_test.go b/service/datastore/checkfilter_test.go
index bd823b5807a299ac26be2bd05395a9f1bd5d6999..37916c839b25a85045fe73b4ed3dcc8f648729f5 100644
--- a/service/datastore/checkfilter_test.go
+++ b/service/datastore/checkfilter_test.go
@@ -28,7 +28,7 @@ func TestCheckFilter(t *testing.T) {
// the panics observed in the tests below would actually be sucessful calls
// to the implementation.
c := SetRaw(info.Set(context.Background(), fakeInfo{}), fakeRDS{})
- rds := GetRaw(c) // has checkFilter
+ rds := Raw(c) // has checkFilter
So(rds, ShouldNotBeNil)
Convey("RunInTransaction", func() {
@@ -64,7 +64,7 @@ func TestCheckFilter(t *testing.T) {
So(rds.GetMulti([]*Key{mkKey("", "", "", "")}, nil, nil).Error(), ShouldContainSubstring, "is nil")
// this is in the wrong aid/ns
- keys := []*Key{MakeKey("wut", "wrong", "Kind", 1)}
+ keys := []*Key{KeyContext{"wut", "wrong"}.MakeKey("Kind", 1)}
So(rds.GetMulti(keys, nil, func(pm PropertyMap, err error) error {
So(pm, ShouldBeNil)
So(err, ShouldEqual, ErrInvalidKey)

Powered by Google App Engine
This is Rietveld 408576698