diff --git a/mailnews/addrbook/test/unit/head_cardDAV.js b/mailnews/addrbook/test/unit/head_cardDAV.js index 1bb46f4324..8921461d47 100644 --- a/mailnews/addrbook/test/unit/head_cardDAV.js +++ b/mailnews/addrbook/test/unit/head_cardDAV.js @@ -8,11 +8,15 @@ const { CardDAVDirectory } = ChromeUtils.import( const { CardDAVServer } = ChromeUtils.import( "resource://testing-common/CardDAVServer.jsm" ); -const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); +var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); Cu.importGlobalProperties(["fetch"]); do_get_profile(); +registerCleanupFunction(function() { + load("../../../resources/mailShutdown.js"); +}); + async function checkCardsOnServer(expectedCards) { // Send a request to the server. When the server responds, we know it has // completed all earlier requests.