fix cleanup of msg database in news tests that lead to some leaks/failures once the rest of the profile was cleaned up at the end, r/sr=standard8, 496557
authorDavid Bienvenu <bienvenu@nventure.com>
Mon, 08 Jun 2009 07:40:00 -0700
changeset 2798 f25ae049f3f673a6f6cd1b8ba607aec46d6578c8
parent 2797 2fdf78cf71193312029925e457ca6bc2c7e9ca64
child 2799 07db45168a3a911725b32baca27077abb3d41664
push idunknown
push userunknown
push dateunknown
bugs496557
fix cleanup of msg database in news tests that lead to some leaks/failures once the rest of the profile was cleaned up at the end, r/sr=standard8, 496557
mailnews/news/test/unit/head_server_setup.js
--- a/mailnews/news/test/unit/head_server_setup.js
+++ b/mailnews/news/test/unit/head_server_setup.js
@@ -167,16 +167,17 @@ function resetFolder(folder) {
   while (headerEnum.hasMoreElements())
     headers.push(headerEnum.getNext().QueryInterface(Ci.nsIMsgDBHdr));
 
   var db = folder.msgDatabase;
   db.dBFolderInfo.knownArtsSet = "";
   for each (var header in headers) {
     db.DeleteHeader(header, null, true, false);
   }
+  folder.msgDatabase = null;
 }
 
 function do_check_transaction(real, expected) {
   // real.them may have an extra QUIT on the end, where the stream is only
   // closed after we have a chance to process it and not them. We therefore
   // excise this from the list
   if (real.them[real.them.length-1] == "QUIT")
     real.them.pop();