diff --git a/dom/network/tests/unit/test_tcpserversocket.js b/dom/network/tests/unit/test_tcpserversocket.js index 565ca07358b..bac473b4b5b 100644 --- a/dom/network/tests/unit/test_tcpserversocket.js +++ b/dom/network/tests/unit/test_tcpserversocket.js @@ -202,7 +202,7 @@ function openSockInClosingServer() { '127.0.0.1', PORT, options); sock.onopen = makeFailureCase('open'); - sock.onerror = success(); + sock.onerror = success; } /** @@ -300,13 +300,4 @@ function run_test() { Services.prefs.setBoolPref('dom.mozTCPSocket.enabled', true); run_next_test(); - - do_timeout(10000, function() { - if (server) { - server.close(); - } - - do_throw( - "The test should never take this long unless the system is hosed."); - }); }