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

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment