Fix orange tests from changeset 7f1d82e03723.
authorJoshua Cranmer <Pidgeot18@gmail.com>
Tue, 05 Jul 2011 17:25:09 -0700
changeset 8512 7e3a06ce86c8c465b39fbdba4860942c6fb308d8
parent 8511 cf80c93a7d8d84bceef945a77a2a6afade45a62d
child 8513 69de1b1f58f7264ba2952c9f9a8e320541d804ad
push id158
push userbugzilla@standard8.plus.com
push dateTue, 27 Sep 2011 19:18:14 +0000
treeherdercomm-beta@e47b99c61e4d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
Fix orange tests from changeset 7f1d82e03723.
mailnews/news/test/unit/test_bug37465.js
mailnews/news/test/unit/test_bug403242.js
--- a/mailnews/news/test/unit/test_bug37465.js
+++ b/mailnews/news/test/unit/test_bug37465.js
@@ -1,15 +1,15 @@
 // Bug 37465 -- assertions with no accounts
 
 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
 
 function run_test() {
   var daemon = setupNNTPDaemon();
-  var server = makeServer(NNTP_RFC2980_handler, daemon);
+  var server = new nsMailServer(new NNTP_RFC2980_handler(daemon));
   server.start(NNTP_PORT);
 
   // Correct URI?
   let ioSvc = Cc['@mozilla.org/network/io-service;1']
                     .getService(Ci.nsIIOService);
   let uri = ioSvc.newURI("news://localhost:1143/1@regular.invalid", null, null);
   let newsUri = uri.QueryInterface(Ci.nsINntpUrl)
                    .QueryInterface(Ci.nsIMsgMailNewsUrl);
--- a/mailnews/news/test/unit/test_bug403242.js
+++ b/mailnews/news/test/unit/test_bug403242.js
@@ -5,17 +5,17 @@ Components.utils.import("resource://gre/
 var daemon, localserver, server;
 
 function run_test() {
   daemon = setupNNTPDaemon();
   daemon.addGroup("test1");
   daemon.addArticle(make_article(do_get_file("postings/bug403242.eml")));
   localserver = setupLocalServer(NNTP_PORT);
   localserver.subscribeToNewsgroup("test1");
-  server = makeServer(NNTP_RFC2980_handler, daemon);
+  server = new nsMailServer(new NNTP_RFC2980_handler(daemon));
   server.start(NNTP_PORT);
 
   let folder = localserver.rootFolder.getChildNamed("test1");
   folder.getNewMessages(null, {
     OnStopRunningUrl: function () { localserver.closeCachedConnections(); }});
   server.performTest();
 
   // Fetch the message