Don't close and reopen window during WebDAV tests

With any luck this will fix the crashing we've been getting in CI.
This commit is contained in:
Dan Stillman 2023-07-26 07:24:09 -04:00
parent 6a2fcd6898
commit a376ad8762

View file

@ -123,10 +123,8 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
return engine;
})
afterEach(function* () {
var defer = new Zotero.Promise.defer();
this.httpd.stop(() => defer.resolve());
yield defer.promise;
afterEach(async function () {
await new Promise(request => this.httpd.stop(request));
})
after(function* () {
@ -141,14 +139,6 @@ describe("Zotero.Sync.Storage.Mode.WebDAV", function () {
// Tests
//
describe("Syncing", function () {
beforeEach(function* () {
win = yield loadZoteroPane();
})
afterEach(function () {
win.close();
})
it("should skip downloads if not marked as needed", function* () {
var engine = yield setup();