Index: impl/memory/memcache_test.go |
diff --git a/impl/memory/memcache_test.go b/impl/memory/memcache_test.go |
index aa0c17d8c776b73a111f0b0e34c0eb4f91f34132..73fa2b46da2f56444bfbbc452c9ba1eee7663a1e 100644 |
--- a/impl/memory/memcache_test.go |
+++ b/impl/memory/memcache_test.go |
@@ -10,6 +10,7 @@ import ( |
mcS "github.com/luci/gae/service/memcache" |
"github.com/luci/luci-go/common/clock/testclock" |
+ . "github.com/luci/luci-go/common/testing/assertions" |
. "github.com/smartystreets/goconvey/convey" |
"golang.org/x/net/context" |
) |
@@ -101,7 +102,7 @@ func TestMemcache(t *testing.T) { |
So(getItm, ShouldResemble, testItem) |
Convey("Flush works too", func() { |
- mc.Flush() |
+ So(mc.Flush(), ShouldBeNil) |
So(mc.Get(getItm), ShouldEqual, mcS.ErrCacheMiss) |
}) |
}) |
@@ -168,11 +169,11 @@ func TestMemcache(t *testing.T) { |
expiration: time.Second * 2, |
}) |
- mc.Get(mc.NewItem("sup")) |
- mc.Get(mc.NewItem("sup")) |
- mc.Get(mc.NewItem("sup")) |
- mc.Get(mc.NewItem("sup")) |
- mc.Get(mc.NewItem("wot")) |
+ So(mc.Get(mc.NewItem("sup")), ShouldBeNil) |
+ So(mc.Get(mc.NewItem("sup")), ShouldBeNil) |
+ So(mc.Get(mc.NewItem("sup")), ShouldBeNil) |
+ So(mc.Get(mc.NewItem("sup")), ShouldBeNil) |
+ So(mc.Get(mc.NewItem("wot")), ShouldErrLike, mcS.ErrCacheMiss) |
mci := mc.Raw().(*memcacheImpl) |