Fix flaky disk cache size test
This CL fixes the flaky disk cache size test. The particular flakiness resulted from off-by-one errors e.g. Expected: (max_file_size_scaled) <= (2 * max_file_size), actual: 55319511 vs 55319510 which occurred because file size is computed as (total cache size/8). The fix however not just accounts for off-by-one errors but removes the check completely as the total cache size is dependent on the available disk space which cannot be guaranteed to be the same between the 2 invocations of VerifyDiskCacheSize. Bug: 1162434 Change-Id: I510eed9ca0ed90e12e953910f7f699be74e10b14 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2625350Reviewed-by:Maksim Orlovich <morlovich@chromium.org> Commit-Queue: Shivani Sharma <shivanisha@chromium.org> Cr-Commit-Position: refs/heads/master@{#842715}
Showing
Please register or sign in to comment