Bug 1080130 - Force GC to close all used socket immediately. r=jmaher, a=test-only
authorShih-Chiang Chien <schien@mozilla.com>
Thu, 02 Apr 2015 14:57:29 +0800
changeset 254875 da142b0672349d9116d02aa00c74c1dfc8319b56
parent 254874 84581cceafaf6785508efe8b8721985a0e4c59ea
child 254876 85071beda9363e853d809a2534728d821bc6f0ee
push id7890
push userryanvm@gmail.com
push dateTue, 07 Apr 2015 21:12:30 +0000
treeherdermozilla-aurora@da142b067234 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher, test-only
bugs1080130
milestone39.0a2
Bug 1080130 - Force GC to close all used socket immediately. r=jmaher, a=test-only
dom/network/tests/test_udpsocket.html
--- a/dom/network/tests/test_udpsocket.html
+++ b/dom/network/tests/test_udpsocket.html
@@ -316,16 +316,19 @@ function testOpenWithoutClose() {
   info('test for open without close');
 
   let closed = [];
   for (let i = 0; i < 50; i++) {
     let socket = new UDPSocket();
     closed.push(socket.closed);
   }
 
+  SpecialPowers.gc();
+  info('all unrefereced socket should be closed right after GC');
+
   return Promise.all(closed);
 }
 
 function testBFCache() {
   info('test for bfcache behavior');
 
   let socket = new UDPSocket();