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

Unified Diff: filter/dscache/dscache_test.go

Issue 1358063003: Add Kind/StringID/IntID back to Key. (Closed) Base URL: https://github.com/luci/gae.git@add_allocate_ids
Patch Set: Created 5 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
« no previous file with comments | « no previous file | impl/memory/datastore_data.go » ('j') | service/datastore/key.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/dscache/dscache_test.go
diff --git a/filter/dscache/dscache_test.go b/filter/dscache/dscache_test.go
index c7bdc865aeeae4a3c5d0ffe6c479f8b2c4c61fb8..0bc23fa61e23457d6bdd23725a8599ba13d99735 100644
--- a/filter/dscache/dscache_test.go
+++ b/filter/dscache/dscache_test.go
@@ -67,7 +67,7 @@ func TestDSCache(t *testing.T) {
mc := memcache.Get(c)
shardsForKey := func(k *datastore.Key) int {
- last := k.Last()
+ last := k.LastTok()
if last.Kind == "shardObj" {
return int(last.IntID)
}
« no previous file with comments | « no previous file | impl/memory/datastore_data.go » ('j') | service/datastore/key.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698