diff --git a/src/util/tests/cache_test.cpp b/src/util/tests/cache_test.cpp index 2b9f0f9ba3d..d730b462fea 100644 --- a/src/util/tests/cache_test.cpp +++ b/src/util/tests/cache_test.cpp @@ -121,6 +121,7 @@ cache_exists(struct disk_cache *cache) disk_cache_put(cache, key, data, sizeof(data), NULL); disk_cache_wait_for_idle(cache); void *result = disk_cache_get(cache, key, NULL); + disk_cache_remove(cache, key); free(result); return result != NULL;