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

Unified Diff: impl/memory/memcache_test.go

Issue 1262173003: Use time.Time for internal memcache memory implementation (Closed) Base URL: https://github.com/luci/gae.git@add_rdscache
Patch Set: address comments Created 5 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
« no previous file with comments | « impl/memory/memcache.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/memcache_test.go
diff --git a/impl/memory/memcache_test.go b/impl/memory/memcache_test.go
index 441abe58a6eb86cbfd2c6baaf22fa3c60b3d550b..aa0c17d8c776b73a111f0b0e34c0eb4f91f34132 100644
--- a/impl/memory/memcache_test.go
+++ b/impl/memory/memcache_test.go
@@ -185,11 +185,10 @@ func TestMemcache(t *testing.T) {
So(stats.Misses, ShouldEqual, 1)
So(stats.ByteHits, ShouldEqual, 4*4)
So(mci.data.casID, ShouldEqual, 1)
- So(mci.data.items["sup"], ShouldResemble, &mcItem{
- key: "sup",
+ So(mci.data.items["sup"], ShouldResemble, &mcDataItem{
value: []byte("cool"),
- expiration: time.Duration(curTime.Add(time.Second * 2).UnixNano()),
- CasID: 1,
+ expiration: curTime.Add(time.Second * 2).Truncate(time.Second),
+ casID: 1,
})
getItm := mc.NewItem("sup")
« no previous file with comments | « impl/memory/memcache.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698