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