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 37201 135ac968011234ff2cfd0f7ee2782be812e325fd
parent 37200 63582aa9fdbe7ee78c41b24986516152591d27c4
child 37202 230eadb7ddd62f0ab33db6e4b17be772936ba4b3
push id2552
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:24:16 +0000
treeherdercomm-beta@f95a6f4408a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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();
-}