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

Unified Diff: service/datastore/datastore_test.go

Issue 1916463004: impl/memory: Disallow empty namespace. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gae@master
Patch Set: Remove memcache. Created 4 years, 8 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/datastore_test.go
diff --git a/service/datastore/datastore_test.go b/service/datastore/datastore_test.go
index 48d5f85c069b3c2aac65bb0f062a3c25a724cda5..27db51af6233a23cbc17265eeecf2064951d65c3 100644
--- a/service/datastore/datastore_test.go
+++ b/service/datastore/datastore_test.go
@@ -24,10 +24,11 @@ import (
func fakeDatastoreFactory(c context.Context, wantTxn bool) RawInterface {
i := info.Get(c)
- return &fakeDatastore{
+ fds := fakeDatastore{
aid: i.FullyQualifiedAppID(),
- ns: i.GetNamespace(),
}
+ fds.ns, _ = i.GetNamespace()
+ return &fds
}
type fakeDatastore struct {

Powered by Google App Engine
This is Rietveld 408576698