diff --git a/test/loadings.js b/test/loadings.js
index <HASH>..<HASH> 100644
--- a/test/loadings.js
+++ b/test/loadings.js
@@ -10,8 +10,6 @@ dom.settings.timeout = 900000;
 dom.settings.stallTimeout = 200; // the value used in the tests
 dom.settings.console = true;
 dom.settings.pool.max = 8;
-require('http').globalAgent.maxSockets = 500;
-
 
 describe("Loading ressources", function suite() {
 	var server, port;
diff --git a/test/when.js b/test/when.js
index <HASH>..<HASH> 100644
--- a/test/when.js
+++ b/test/when.js
@@ -9,7 +9,6 @@ dom.settings.allow = 'all';
 dom.settings.timeout = 10000;
 dom.settings.console = true;
 dom.settings.pool.max = 8;
-require('http').globalAgent.maxSockets = 50000;
 
 function pagePluginTest(page, plugin, ev) {
 	page.when(ev, function(cb) {
maxSockets is now infinity by default