test: add test case for PutMany using cache to eliminate the call
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Aug 31, 2016 at 13:05 UTC
4c86d7a4f82f50ea4a43d530c890b1299be8ea36
1 file changed
+6
blocks/blockstore/arc_cache_test.go
+6
@@ -175,4 +175,10 @@ func TestPutManyCaches(t *testing.T) {
175
176
trap("has hit datastore", cd, t)
177
arc.Has(exampleBlock.Key())
178
+ untrap(cd)
179
+ arc.DeleteBlock(exampleBlock.Key())
180
+
181
+ arc.Put(exampleBlock)
182
+ trap("PunMany has hit datastore", cd, t)
183
+ arc.PutMany([]blocks.Block{exampleBlock})
184
}