Bug 1610124 - remove unneeded run_test() from test_smtpProxy.js. r=darktrojan
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Wed, 05 Feb 2020 10:36:33 +0200
changeset 38080 135ac968011234ff2cfd0f7ee2782be812e325fd
parent 38079 63582aa9fdbe7ee78c41b24986516152591d27c4
child 38081 230eadb7ddd62f0ab33db6e4b17be772936ba4b3
push id398
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:10:28 +0000
reviewersdarktrojan
bugs1610124
Bug 1610124 - remove unneeded run_test() from test_smtpProxy.js. r=darktrojan
mailnews/compose/test/unit/test_smtpProxy.js
--- a/mailnews/compose/test/unit/test_smtpProxy.js
+++ b/mailnews/compose/test/unit/test_smtpProxy.js
@@ -8,16 +8,17 @@ const { NetworkTestUtils } = ChromeUtils
 const { PromiseTestUtils } = ChromeUtils.import(
   "resource://testing-common/mailnews/PromiseTestUtils.jsm"
 );
 
 const PORT = 25;
 var daemon, localserver, server;
 
 add_task(async function setup() {
+  localAccountUtils.loadLocalMailAccount();
   server = setupServerDaemon();
   daemon = server._daemon;
   server.start();
   NetworkTestUtils.configureProxy("smtp.tinderbox.invalid", PORT, server.port);
   localserver = getBasicSmtpServer(PORT, "smtp.tinderbox.invalid");
 });
 
 add_task(async function sendMessage() {
@@ -41,12 +42,8 @@ add_task(async function sendMessage() {
   await urlListener.promise;
   notEqual(daemon.post, "");
 });
 
 add_task(async function cleanUp() {
   NetworkTestUtils.shutdownServers();
 });
 
-function run_test() {
-  localAccountUtils.loadLocalMailAccount();
-  run_next_test();
-}