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

Unified Diff: go/src/infra/gae/libs/wrapper/memory/memcache_test.go

Issue 986553002: A simple memcache lock for appengine. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@meta
Patch Set: rebase Created 5 years, 7 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
« DEPS ('K') | « go/src/infra/gae/libs/wrapper/memory/memcache.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/src/infra/gae/libs/wrapper/memory/memcache_test.go
diff --git a/go/src/infra/gae/libs/wrapper/memory/memcache_test.go b/go/src/infra/gae/libs/wrapper/memory/memcache_test.go
index 6009e22eebf77fd4b089db4848566e16cc8e5f4e..9225f51c7751180eeeb1c845cabab03fdcb19230 100644
--- a/go/src/infra/gae/libs/wrapper/memory/memcache_test.go
+++ b/go/src/infra/gae/libs/wrapper/memory/memcache_test.go
@@ -28,7 +28,8 @@ func TestMemcache(t *testing.T) {
}
c := Use(wrapper.SetTimeNowFactory(context.Background(), timeNow))
mc := wrapper.GetMC(c)
- mci := mc.(*memcacheImpl)
+ mci := wrapper.GetMC(c).(*memcacheImpl)
+ So(mc, ShouldNotEqual, mci) // two impls with the same memcacheData
Convey("implements MCSingleReadWriter", func() {
Convey("Add", func() {
« DEPS ('K') | « go/src/infra/gae/libs/wrapper/memory/memcache.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698