*: address review comments

This commit is contained in:
disksing
2015-11-09 13:38:14 +08:00
parent 08348d55c3
commit e97863751f

View File

@ -89,7 +89,7 @@ func (s *testCacheSnapshotSuite) TestRangeGet(c *C) {
m, err := s.cache.RangeGet(s.k1, s.k2, 100)
c.Assert(err, IsNil)
c.Assert(len(m), Equals, 2)
c.Assert(m, HasLen, 2)
c.Assert(m[string(s.k1)], BytesEquals, s.v1)
c.Assert(m[string(s.k2)], BytesEquals, s.v2)