Fix unit test bustage from bug 748726. a=bustage-fix for CLOSED TREE
authorMark Banner <bugzilla@standard8.plus.com>
Sat, 28 Apr 2012 18:44:05 +0100
changeset 30782 b5ed052dcc54cd5e1a3830c2e0e9ff2fbcc9d59e
parent 30781 53fd7df65dba2ba87e82a9821da23500a98edfb8
child 30783 97368066a50f9eae4c49d4d2bea192801c15eb96
child 30786 c475bdfedc35f977b1eae2a36486ac6bd714fa23
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs748726
Fix unit test bustage from bug 748726. a=bustage-fix for CLOSED TREE
mailnews/local/test/unit/test_movemailDownload.js
--- a/mailnews/local/test/unit/test_movemailDownload.js
+++ b/mailnews/local/test/unit/test_movemailDownload.js
@@ -29,17 +29,17 @@ function run_test()
   }
 
   loadLocalMailAccount();
   
   let acctMgr = Cc["@mozilla.org/messenger/account-manager;1"]
                   .getService(Ci.nsIMsgAccountManager);
   var incoming = acctMgr.createIncomingServer("", "", "movemail");
   let workingDir = Services.dirsvc.get("CurWorkD", Ci.nsIFile);
-  let workingDirFile = workingDir.clone();
+  let workingDirFile = workingDir.clone().QueryInterface(Ci.nsILocalFile);
   let fullPath = workingDirFile.path + "/data/movemailspool";
   workingDirFile.initWithPath(fullPath);
   // movemail truncates spool file, so make a copy, and use that
   workingDirFile.copyTo(null, "movemailspool-copy");
   fullPath += "-copy";
   dump("full path = " + fullPath + "\n");
   incoming.setCharValue("spoolDir", fullPath);
   incoming.QueryInterface(Ci.nsILocalMailIncomingServer);