From 95fd68a1e1b7858be795829a1ac15d69701b1c5b Mon Sep 17 00:00:00 2001 From: Geoff Lankow Date: Tue, 2 Jun 2020 11:24:01 +1200 Subject: [PATCH] Bug 1642281 - Close address book databases after cardDAV tests. rs=bustage-fix --HG-- extra : histedit_source : a734aabb198fe3747d98c183c71765640fa41463 --- mailnews/addrbook/test/unit/head_cardDAV.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.