Bug 1581067 - P6 - Change the test due to P5; r=asuth
authorTom Tung <ttung@mozilla.com>
Wed, 02 Oct 2019 10:38:55 +0000
changeset 495988 d87f436694562c7dba3ab95c637a2186e754e405
parent 495987 74d480f1bfa8f5d63e71818e9ee4dcfe8095a973
child 495989 b1a61ab3019cd59eb07235097fca99cc48ca190f
push id114140
push userdvarga@mozilla.com
push dateWed, 02 Oct 2019 18:04:51 +0000
treeherdermozilla-inbound@32eb0ea893f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1581067
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1581067 - P6 - Change the test due to P5; r=asuth Differential Revision: https://phabricator.services.mozilla.com/D47874
dom/cache/test/xpcshell/test_empty_directories.js
--- a/dom/cache/test/xpcshell/test_empty_directories.js
+++ b/dom/cache/test/xpcshell/test_empty_directories.js
@@ -62,27 +62,17 @@ async function run_test() {
 
   info("Test 0 - InitOrigin shouldn't leave an empty directoy");
 
   let cache = await caches.open("test");
   let response = await cache.match(url);
   ok(!!response, "Upgrade from 25 to 26 do succeed");
   ok(verifyResult(), "InitOrigin should clean all empty directories");
 
-  info("Test 1 - DeleteBodyFiles shouldn't leave an empty directoy");
-
-  await cache.put(url, response.clone());
-  await cache.delete(url);
-
-  // Extra operation to ensure the deletion is completed
-  await cache.match(url);
-
-  ok(verifyResult(), "Empty directory should be removed");
-
-  info("Test 2 - DeleteOrphanedBodyFiles shouldn't leave an empty directoy");
+  info("Test 1 - DeleteOrphanedBodyFiles shouldn't leave an empty directoy");
 
   await cache.put(url, response.clone());
   // eslint-disable-next-line no-unused-vars
   let r = await cache.match(url);
   await cache.delete(url);
   await resetStorage();
 
   cache = await caches.open("test");