3688374 cache_req tests: reduce code duplication

1 file Authored by pbrezina 6 years ago, Committed by jhrozek 6 years ago,
    cache_req tests: reduce code duplication
    
    Reviewed-by: Sumit Bose <sbose@redhat.com>