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

Unified Diff: filter/count/count_test.go

Issue 1354333002: Fix memcache.Interface.Get to return a memcache.Item (Closed) Base URL: https://github.com/luci/gae.git@fix_meta_serialize
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 | filter/dscache/dscache_test.go » ('j') | service/memcache/memcache.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: filter/count/count_test.go
diff --git a/filter/count/count_test.go b/filter/count/count_test.go
index 60c78589d4cc61800e7165350e29bac18a8d8d16..0a67a774229c1a767a77c13edc279bc0b0458190 100644
--- a/filter/count/count_test.go
+++ b/filter/count/count_test.go
@@ -99,8 +99,12 @@ func TestCount(t *testing.T) {
mc := memcache.Get(c)
die(mc.Set(mc.NewItem("hello").SetValue([]byte("sup"))))
- So(mc.Get(mc.NewItem("Wat")), ShouldNotBeNil)
- die(mc.Get(mc.NewItem("hello")))
+
+ _, err := mc.Get("Wat")
+ So(err, ShouldNotBeNil)
+
+ _, err = mc.Get("hello")
+ die(err)
So(ctr.SetMulti, shouldHaveSuccessesAndErrors, 1, 0)
So(ctr.GetMulti, shouldHaveSuccessesAndErrors, 2, 0)
« no previous file with comments | « no previous file | filter/dscache/dscache_test.go » ('j') | service/memcache/memcache.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698