test: add test case for PutMany using cache to eliminate the call

License: MIT
Signed-off-by: 's avatarJakub Sztandera <kubuxu@protonmail.ch>
上级 c4323c0b
......@@ -175,4 +175,10 @@ func TestPutManyCaches(t *testing.T) {
trap("has hit datastore", cd, t)
arc.Has(exampleBlock.Key())
untrap(cd)
arc.DeleteBlock(exampleBlock.Key())
arc.Put(exampleBlock)
trap("PunMany has hit datastore", cd, t)
arc.PutMany([]blocks.Block{exampleBlock})
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论