Bug 1144725 - Forcefully terminate the workers used in DOM cache tests once we're done with them; r=bkelly
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 18 Mar 2015 17:44:12 -0400
changeset 265260 396697e37f14e8662d6a7b1235a732b65ae2a3c5
parent 265259 4c65990d4c58b6618ea38f264379d17c16bd8dac
child 265261 37427ecf4c277e44907af1f4f66cfe0cabb888e4
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly
bugs1144725
milestone39.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 1144725 - Forcefully terminate the workers used in DOM cache tests once we're done with them; r=bkelly
dom/cache/test/mochitest/worker_driver.js
--- a/dom/cache/test/mochitest/worker_driver.js
+++ b/dom/cache/test/mochitest/worker_driver.js
@@ -28,16 +28,17 @@
 
 function workerTestExec(script) {
   return new Promise(function(resolve, reject) {
     var worker = new Worker('worker_wrapper.js');
     worker.onmessage = function(event) {
       is(event.data.context, "Worker",
          "Correct context for messages received on the worker");
       if (event.data.type == 'finish') {
+        worker.terminate();
         SpecialPowers.forceGC();
         resolve();
 
       } else if (event.data.type == 'status') {
         ok(event.data.status, event.data.context + ": " + event.data.msg);
 
       } else if (event.data.type == 'getPrefs') {
         var result = {};