Commit 8acfd6dc authored by Maks Orlovich's avatar Maks Orlovich Committed by Commit Bot

Trying to deflake DiskCacheEntryTest.SimpleCacheCreateRecoverFromRmdir

The test removes |cache_dir_|, which seems risky since other instances might
touch it; so instead put the cache one more level down.

Bug: 999584
Change-Id: I56f100b0308e45f1e6bbc66c7306cbf3af822e99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1782878Reviewed-by: default avatarEric Orth <ericorth@chromium.org>
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692946}
parent a5d2f5a3
...@@ -34,7 +34,10 @@ using net::test::IsOk; ...@@ -34,7 +34,10 @@ using net::test::IsOk;
DiskCacheTest::DiskCacheTest() { DiskCacheTest::DiskCacheTest() {
CHECK(temp_dir_.CreateUniqueTempDir()); CHECK(temp_dir_.CreateUniqueTempDir());
cache_path_ = temp_dir_.GetPath(); // Put the cache into a subdir of |temp_dir_|, to permit tests to safely
// remove the cache directory without risking collisions with other tests.
cache_path_ = temp_dir_.GetPath().AppendASCII("cache");
CHECK(base::CreateDirectory(cache_path_));
} }
DiskCacheTest::~DiskCacheTest() = default; DiskCacheTest::~DiskCacheTest() = default;
......
...@@ -4935,8 +4935,7 @@ TEST_F(DiskCacheEntryTest, SimpleCacheReadCorruptLength) { ...@@ -4935,8 +4935,7 @@ TEST_F(DiskCacheEntryTest, SimpleCacheReadCorruptLength) {
EXPECT_NE(net::OK, OpenEntry(key, &entry)); EXPECT_NE(net::OK, OpenEntry(key, &entry));
} }
// TODO(https://crbug.com/999584): Flaky on slower bots. TEST_F(DiskCacheEntryTest, SimpleCacheCreateRecoverFromRmdir) {
TEST_F(DiskCacheEntryTest, DISABLED_SimpleCacheCreateRecoverFromRmdir) {
// This test runs as APP_CACHE to make operations more synchronous. // This test runs as APP_CACHE to make operations more synchronous.
// (in particular we want to see if create succeeded or not, so we don't // (in particular we want to see if create succeeded or not, so we don't
// want an optimistic one). // want an optimistic one).
......
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